/* =========================
   RESET & BASE (CRITICAL)
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0; /* IMPORTANT: prevents overflow */
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px;
}

/* =========================
   HEADER
========================= */
header {
  padding: 16px 0;
  border-bottom: 1px solid #1e293b;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 6px;
}

h2 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
}

h3 {
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  margin: 0;
}

p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* =========================
   GRID – MOBILE FIRST (NO LAG)
========================= */
.grid {
  display: grid;
  grid-template-columns: 1fr; /* Phones */
  gap: 14px;
  margin-top: 20px;
  min-width: 0;
}

/* Tablets */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptops */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   CARD (OVERFLOW SAFE)
========================= */
.card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

/* TEXT OVERFLOW SAFETY */
.card h3,
.card p,
.card a {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* =========================
   FORMS & BUTTONS
========================= */
input,
button {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

input {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

button {
  background: #22c55e;
  color: #020617;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* =========================
   LINKS INSIDE CARDS
========================= */
.card a {
  display: inline-block;
  max-width: 100%;
  margin-top: auto;
  font-weight: 600;
}

/* =========================
   FOOTER
========================= */
footer {
  border-top: 1px solid #1e293b;
  padding: 16px;
  margin-top: 40px;
  font-size: 13px;
  text-align: center;
  opacity: 0.9;
}

/* =========================
   SMALL PHONE OPTIMIZATION
========================= */
@media (max-width: 360px) {
  h1 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.9rem;
  }

  .container {
    padding: 10px;
  }
}

/* =========================
   BRAND HEADER – GRADIENT STYLE
========================= */
.brand-header {
  padding: 26px 0 22px;
  border-bottom: 1px solid #1e293b;
  background: linear-gradient(
    180deg,
    rgba(2,6,23,1) 0%,
    rgba(2,6,23,0.96) 100%
  );
}

.brand-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* LOGO AREA */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(34,197,94,0.4));
}

/* BRAND NAME CONTAINER */
.brand-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

/* MAIN BRAND – BIG + GRADIENT */
.brand-main {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.6px;

  background: linear-gradient(
    90deg,
    rgb(34,197,94),   /* green */
    rgb(56,189,248),  /* blue */
    rgb(239,68,68)    /* red */
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SUB BRAND – SMALLER */
.brand-sub {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: rgb(239,68,68); /* calm gray */
  margin-top: 6px;
}

/* TAGLINE */
.brand-tagline {
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
 background: linear-gradient(
    90deg,
    rgb(34,197,94),   /* green */
    rgb(56,189,248),  /* blue */
    rgb(239,68,68)    /* red */
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MOBILE TUNING */
@media (max-width: 480px) {
  .brand-icon {
    font-size: 1.6rem;
  }

  .brand-sub {
    margin-top: 4px;
  }
}


/* =========================
   FOOTER – PROFESSIONAL & RESPONSIVE
========================= */
.site-footer {
  border-top: 1px solid #1e293b;
  margin-top: 48px;
  padding: 22px 14px;
  background: #020617;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-inner a {
  color: #38bdf8;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.footer-inner a:hover {
  color: #22c55e;
  opacity: 1;
}

.footer-inner span {
  opacity: 0.5;
}

.footer-copy {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* MOBILE FOOTER TUNING */
@media (max-width: 480px) {
  .footer-inner {
    font-size: 0.9rem;
    gap: 6px;
  }

  .footer-copy {
    font-size: 0.75rem;
  }
}
