/* ============================================================
   BoxAds Online — Main Stylesheet
   Aesthetic: Clean light off-white with teal/cyan accents.
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

:root {
  --bg:        #f5f6f8;
  --bg-2:      #ffffff;
  --bg-3:      #eef0f4;
  --cyan:      #0099b8;
  --cyan-dim:  #007a94;
  --cyan-lt:   #e0f7fb;
  --text:      #1a1f2e;
  --text-2:    #3d4558;
  --grey:      #6b7280;
  --grey-lt:   #9ca3af;
  --border:    #dde1e9;
  --red:       #e03452;
  --green:     #0a9e72;
  --yellow:    #c47d00;
  --radius:    6px;
  --transition: 0.22s ease;
  --shadow:    0 4px 20px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-dim); }

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

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--cyan-dim); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cyan);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: var(--radius);
  border: 1.5px solid var(--cyan);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--cyan); color: #fff; }

.btn-primary-sm {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-primary-sm:hover { background: var(--cyan-dim); color: #fff; }

.btn-outline-sm {
  display: inline-block;
  background: transparent;
  color: var(--text-2);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 17px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.btn-outline-sm:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 68px;
}
.logo { display: flex; align-items: baseline; gap: 0; text-decoration: none; }
.logo-box { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--cyan); }
.logo-ads { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--text); }
.logo-dot { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--cyan); }

.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--grey);
  transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; gap: 10px; align-items: center; margin-left: 24px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--grey); transition: all var(--transition); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  color: var(--text-2);
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,153,184,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-lt);
  border: 1px solid rgba(0,153,184,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }

.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; max-width: 720px; margin-bottom: 24px; color: var(--text); }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p { font-size: 1.1rem; color: var(--text-2); max-width: 560px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-number { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--cyan); }
.stat-label { font-size: 0.82rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; color: var(--text); }
.section-lead { font-size: 1.05rem; color: var(--text-2); max-width: 560px; margin-bottom: 56px; }

/* ---- Feature Cards ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover { border-color: rgba(0,153,184,0.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--cyan-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 0.9rem; color: var(--grey); line-height: 1.6; }

/* ---- How It Works ---- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.how-step { padding: 36px 32px; position: relative; }
.how-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan);
  opacity: 0.5;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0,153,184,0.12);
  line-height: 1;
  margin-bottom: 12px;
}
.how-step h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.how-step p { font-size: 0.85rem; color: var(--grey); }

/* ---- Ad Formats ---- */
.formats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .formats-grid { grid-template-columns: repeat(4, 1fr); } }
.format-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.format-card:hover { border-color: var(--cyan); background: var(--cyan-lt); }
.format-card .f-icon { font-size: 2.2rem; margin-bottom: 14px; }
.format-card h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--text); }
.format-card p { font-size: 0.8rem; color: var(--grey); }

/* ---- CTA Band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--cyan-lt) 0%, #f0fbfd 100%);
  border: 1px solid rgba(0,153,184,0.18);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
  margin: 0 0 80px;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; color: var(--text); }
.cta-band p { color: var(--text-2); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-band-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; color: var(--grey); margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-2);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.82rem; color: var(--grey); }

/* ---- Group Banner ---- */
.group-banner {
  background: var(--bg-3);
  text-align: center;
  line-height: 0;
}
.group-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition);
}
.group-banner a:hover .group-banner-img { opacity: 0.85; }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: var(--cyan-lt); color: var(--cyan-dim); }
.badge-secondary{ background: var(--bg-3); color: var(--grey); }
.badge-dark     { background: #e5e7eb; color: var(--text-2); }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-control {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 11px 14px;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,153,184,0.1); }
.form-control::placeholder { color: var(--grey-lt); }
select.form-control { appearance: none; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  background: var(--bg-3);
  color: var(--grey);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); background: var(--bg-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-3); }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 20px; border-left: 3px solid; }
.alert-success { background: #d1fae5; border-color: #059669; color: #065f46; }
.alert-danger   { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.alert-info     { background: var(--cyan-lt); border-color: var(--cyan); color: var(--cyan-dim); }
.alert-warning  { background: #fef3c7; border-color: #d97706; color: #92400e; }

/* ---- Page Hero ---- */
.page-hero { padding: 60px 0 48px; background: var(--bg-2); border-bottom: 1px solid var(--border); margin-bottom: 60px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; color: var(--text); }
.page-hero p { color: var(--text-2); font-size: 1.05rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .how-step:not(:last-child)::after { display: none; }
  .cta-band { padding: 40px 24px; }
}
