/* ═══════════════════════════════════════════════════════════
   MAIN.CSS — ONA INC · Digital Marketing Agency
   Design tokens · Reset · Utilities · Navbar · Footer · Motion
   Palette derived from the ONA INC logo (navy / teal / cyan)
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --navy:       #0D2B3E;
  --teal:       #0D6E8A;
  --cyan:       #00C9E0;
  --cyan-soft:  #7EE8F5;

  /* Neutrals (white-first) */
  --white:      #FFFFFF;
  --paper:      #F7FAFC;   /* faint tint sections */
  --mist:       #EEF5F8;   /* card washes */
  --border:     #E5EEF2;
  --border-2:   #D8E6EC;

  /* Text */
  --ink:        #0D2B3E;
  --text:       #33505F;
  --text-mid:   #5A7382;
  --text-muted: #8AA2AF;

  /* Gradients */
  --grad:       linear-gradient(135deg, #0D2B3E 0%, #0D6E8A 55%, #00C9E0 100%);
  --grad-btn:   linear-gradient(135deg, #0D6E8A 0%, #00C9E0 100%);
  --grad-text:  linear-gradient(100deg, #0D6E8A 0%, #00C9E0 100%);
  --grad-soft:  linear-gradient(135deg, #E8F6FA 0%, #EDF7FF 100%);

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 100px;

  /* Shadows (soft, premium) */
  --sh-xs:  0 1px 2px rgba(13,43,62,0.05);
  --sh-sm:  0 4px 16px rgba(13,43,62,0.06);
  --sh-md:  0 12px 34px rgba(13,43,62,0.09);
  --sh-lg:  0 28px 64px rgba(13,43,62,0.12);
  --sh-cyan: 0 14px 34px rgba(0,150,180,0.28);

  /* Type */
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid rgba(0,201,224,0.55); outline-offset: 3px; border-radius: 4px; }

/* ── Layout Utilities ───────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; position: relative; z-index: 1; }
section { padding: 104px 0; position: relative; }
.section-tint { background: var(--paper); }
.section-ink  { background: var(--navy); }

/* Decorative gradient blobs (subtle) */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: 0.5; z-index: 0; pointer-events: none;
}
.blob-cyan { background: radial-gradient(circle, rgba(0,201,224,0.35), transparent 70%); }
.blob-teal { background: radial-gradient(circle, rgba(13,110,138,0.28), transparent 70%); }

/* ── Background decor: patterns, rings, orbs ────────────────── */
.deco-grid, .deco-dots {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 0%, transparent 76%);
}
.deco-grid {
  background-image:
    linear-gradient(to right, rgba(13,110,138,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,110,138,0.06) 1px, transparent 1px);
  background-size: 58px 58px;
}
.deco-dots {
  background-image: radial-gradient(rgba(13,110,138,0.11) 1.1px, transparent 1.2px);
  background-size: 24px 24px;
}
.deco-grid.dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
}
.deco-dots.dark { background-image: radial-gradient(rgba(0,201,224,0.16) 1.1px, transparent 1.2px); }

.deco-ring {
  position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
  border: 1.5px solid rgba(13,110,138,0.12);
}
.deco-ring.dashed { border-style: dashed; border-color: rgba(0,201,224,0.22); }
.deco-ring.dark { border-color: rgba(255,255,255,0.10); }
.deco-ring.spin { animation: spin 40s linear infinite; }
.deco-ring.spin-rev { animation: spin 55s linear infinite reverse; }

.deco-orb {
  position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
  background: var(--grad-btn); box-shadow: var(--sh-cyan);
  animation: floaty 6s ease-in-out infinite;
}
.deco-orb.hollow { background: transparent; border: 6px solid rgba(0,201,224,0.14); box-shadow: none; }
.deco-plus {
  position: absolute; z-index: 0; pointer-events: none; color: rgba(13,110,138,0.18);
  font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1;
  animation: floaty 7s ease-in-out infinite;
}
.deco-plus.dark { color: rgba(0,201,224,0.35); }

@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── Typography Helpers ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--teal); font-family: var(--font-head);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-btn); flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--cyan); }

.sec-title {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800; color: var(--ink);
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px;
}
.sec-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sec-title.white { color: #fff; }
.sec-title.center { text-align: center; }

.sec-sub { font-size: 17.5px; color: var(--text-mid); line-height: 1.7; }
.sec-sub.center { text-align: center; max-width: 620px; margin-inline: auto; }
.sec-sub.light { color: rgba(255,255,255,0.72); }

.sec-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.sec-head.left { margin-inline: 0; text-align: left; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: var(--sh-cyan); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0,150,180,0.38); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--border-2); box-shadow: var(--sh-xs); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--sh-sm); color: var(--teal); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--sh-md); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.btn-white:hover svg { transform: translateX(4px); }
.btn-outline-w { background: rgba(255,255,255,0.06); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(6px); }
.btn-outline-w:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.6); transform: translateY(-3px); }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ── Navbar (glassmorphism) ─────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
  box-shadow: var(--sh-xs);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--text);
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover { color: var(--teal); background: rgba(0,201,224,0.08); }
.nav-links > li > a.active { color: var(--teal); }
.btn-nav {
  background: var(--grad-btn) !important; color: #fff !important;
  padding: 11px 22px !important; box-shadow: var(--sh-cyan);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease) !important;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,150,180,0.34); }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd > a::after {
  content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform 0.25s; opacity: 0.6;
}
.nav-dd:hover > a::after { transform: rotate(225deg) translateY(0); }
.dd-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 10px; width: 320px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-dd:hover .dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-panel a { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: var(--r-sm); transition: background 0.2s; }
.dd-panel a:hover { background: var(--mist); }
.dd-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--teal);
}
.dd-ic svg { width: 20px; height: 20px; }
.dd-title { display: block; font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.dd-sub { display: block; font-size: 12px; color: var(--text-muted); }

/* Hamburger + mobile */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 26px; background: rgba(255,255,255,0.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a { padding: 13px 14px; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 600; color: var(--text); }
.mobile-menu a:hover { background: var(--mist); color: var(--teal); }
.mobile-menu .m-cta { background: var(--grad-btn); color: #fff; text-align: center; margin-top: 6px; }
.m-sep { height: 1px; background: var(--border); margin: 8px 0; }
#nav.open .mobile-menu { display: flex; }

/* ── Scroll-reveal motion ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.4); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 76px 0 30px; position: relative; overflow: hidden; }
footer .blob { opacity: 0.4; }
.foot-wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; position: relative; z-index: 1; }
.foot-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-brand img { height: 48px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.foot-brand p { font-size: 14.5px; line-height: 1.7; max-width: 330px; margin-bottom: 22px; }
.foot-contacts { display: flex; flex-direction: column; gap: 11px; }
.foot-contacts a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.foot-contacts a:hover { color: var(--cyan); }
.foot-contacts svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }
.foot-col h5 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.foot-col ul { display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 14.5px; color: rgba(255,255,255,0.7); transition: color 0.2s, padding-left 0.2s; }
.foot-col a:hover { color: var(--cyan); padding-left: 4px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.foot-bottom p { font-size: 13.5px; }
.foot-bottom p span { color: #fff; font-weight: 600; }
.foot-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-legal a { font-size: 13.5px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.foot-legal a:hover { color: var(--cyan); }
.socials { display: flex; gap: 10px; }
.s-link {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.s-link svg { width: 17px; height: 17px; }
.s-link:hover { background: var(--grad-btn); border-color: transparent; transform: translateY(-3px); }

/* ── Page hero (interior pages) ─────────────────────────────── */
.page-hero { padding: 168px 0 76px; background: var(--grad-soft); position: relative; overflow: hidden; text-align: center; }
.page-hero .blob { opacity: 0.55; }
.page-hero-wrap { max-width: 820px; margin: 0 auto; padding-inline: 24px; position: relative; z-index: 1; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span.sep { opacity: 0.5; }
.breadcrumb .cur { color: var(--teal); font-weight: 600; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; margin-bottom: 18px; }
.page-hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { font-size: 18px; color: var(--text-mid); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--border-2);
  color: var(--teal); font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em; padding: 7px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-xs);
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: blink 2s infinite; }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band { background: var(--grad); position: relative; overflow: hidden; text-align: center; }
.cta-band .blob { opacity: 0.4; }
.cta-inner { max-width: 760px; margin: 0 auto; padding-inline: 24px; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); color: #fff; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 34px; max-width: 540px; margin-inline: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 76px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-btns .btn, .hero-btns .btn { width: 100%; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
