/* ============================================================
   A to Z Apps — styles.css
   ============================================================ */

:root {
  --bg:        #0a0e1a;
  --bg-alt:    #0d1222;
  --surface:   #121936;
  --surface-2: #171f42;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);

  --text:      #eef1fb;
  --muted:     #9aa4c7;
  --muted-2:   #6f7aa3;

  --primary:   #6366f1;
  --violet:    #8b5cf6;
  --cyan:      #22d3ee;
  --pink:      #f472b6;
  --emerald:   #34d399;

  --grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(139,92,246,0.16), rgba(34,211,238,0.16));

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 60px -30px rgba(99,102,241,0.5);

  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted-2); font-size: .9rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-primary { background: var(--grad); color: #0a0e1a; box-shadow: 0 12px 30px -12px rgba(99,102,241,0.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(99,102,241,0.9); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); color: #fff; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(10,14,26,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10,14,26,0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.18rem; }
.brand-text { white-space: nowrap; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; }
.brand-accent { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta { color: #0a0e1a; }
.nav-links a.nav-cta:hover { color: #0a0e1a; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(4rem, 12vh, 9rem) 0 clamp(3rem, 8vh, 6rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 460px; height: 460px; background: var(--violet); top: -120px; left: -80px; }
.blob-2 { width: 420px; height: 420px; background: var(--cyan); top: -60px; right: -60px; animation-delay: -4s; }
.blob-3 { width: 380px; height: 380px; background: var(--primary); bottom: -160px; left: 40%; animation-delay: -8s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}
@keyframes float { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(20px,-30px) scale(1.08);} }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.pill {
  display: inline-block; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-2);
  font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; font-weight: 500;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; margin-bottom: 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 680px; margin: 0 auto 2rem; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border-top: 1px solid var(--border); padding-top: 2rem; text-align: center;
}
.hero-stats li { display: flex; flex-direction: column; gap: .25rem; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: .8rem; color: var(--muted-2); line-height: 1.35; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-alt); padding: .9rem 0; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; color: var(--muted-2); font-size: 1rem; letter-spacing: .02em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 10vh, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: .8rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; }

.feature-card { padding: 2.2rem; }
.feature-icon { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: 16px; margin-bottom: 1.2rem; }

.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; color: var(--muted); font-size: .95rem; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

.domain-card { text-align: left; }
.domain-emoji { font-size: 1.9rem; margin-bottom: .9rem; }
.domain-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.domain-card p { font-size: .95rem; margin: 0; }

/* ---------- featured / soundbox ---------- */
.featured {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3.2rem);
  position: relative; overflow: hidden;
}
.featured::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: .5; pointer-events: none; }
.featured > * { position: relative; z-index: 1; }
.featured h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.wip-tag { font-family: var(--font); font-size: .62em; font-weight: 600; color: var(--muted-2); background: rgba(255,255,255,0.06); border: 1px solid var(--border-2); padding: .2em .7em; border-radius: 999px; letter-spacing: 0; text-transform: none; }
.featured-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.3rem; }

.badge { font-family: var(--display); font-size: .74rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.badge-soon { background: rgba(52,211,153,0.14); color: var(--emerald); border: 1px solid rgba(52,211,153,0.35); }
.badge-dev { background: rgba(139,92,246,0.14); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.35); }

.featured-visual { display: grid; place-items: center; }
.soundbox {
  width: 100%; max-width: 320px; background: linear-gradient(160deg, #171f42, #0d1222);
  border: 1px solid var(--border-2); border-radius: 22px; padding: 1.6rem;
  box-shadow: var(--shadow-glow);
}
.soundbox-top { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.sb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 1.8s infinite; }
.sb-label { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; color: var(--emerald); font-weight: 600; }
.soundbox-amount { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: #fff; }
.soundbox-amount span { color: var(--muted-2); font-size: 1.3rem; }
.soundbox-wave { display: flex; align-items: center; gap: 4px; height: 40px; margin: 1rem 0; }
.soundbox-wave span { flex: 1; background: var(--grad); border-radius: 4px; animation: eq 1s ease-in-out infinite; }
.soundbox-wave span:nth-child(odd) { animation-delay: -.4s; }
.soundbox-wave span:nth-child(3n) { animation-delay: -.7s; }
.soundbox-foot { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: .9rem; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5);} 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0);} 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0);} }

/* ---------- product cards ---------- */
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.product-glyph {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #0a0e1a;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.product-card h3 { font-size: 1.18rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.product-card p { font-size: .94rem; }
.product-domain { display: inline-block; font-size: .78rem; color: var(--muted-2); border: 1px solid var(--border); padding: .25rem .7rem; border-radius: 999px; }
.product-card--more { background: transparent; border-style: dashed; }

/* ---------- platform ---------- */
.platform-card { text-align: center; }
.platform-icon { font-size: 2.4rem; margin-bottom: .8rem; }
.platform-card p { font-size: .94rem; margin: 0; }

/* ---------- services ---------- */
.service-card { position: relative; }
.service-num { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: transparent; -webkit-text-stroke: 1px var(--border-2); margin-bottom: .8rem; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { font-size: .92rem; margin: 0; }

.cta-band {
  margin-top: 2.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--grad); border-radius: var(--radius-lg); padding: 2rem 2.4rem;
}
.cta-band h3 { color: #0a0e1a; margin-bottom: .2rem; font-size: 1.5rem; }
.cta-band p { color: rgba(10,14,26,0.75); margin: 0; font-weight: 500; }
.cta-band .btn-primary { background: #0a0e1a; color: #fff; box-shadow: none; }
.cta-band .btn-primary:hover { background: #060913; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.about-values { display: grid; gap: 1rem; }
.about-values li { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.3rem; }
.about-values li span { font-size: 1.5rem; }
.about-values strong { display: block; font-family: var(--display); }
.about-values p { margin: 0; font-size: .9rem; }

/* ---------- contact ---------- */
.section-contact { background: var(--bg-alt); }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.contact-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.contact-links { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.contact-line { display: inline-flex; align-items: flex-start; gap: .5rem; color: var(--text); font-weight: 500; transition: color .2s; }
a.contact-line:hover { color: var(--cyan); }
.contact-line--static { cursor: default; color: var(--muted); font-weight: 400; }

.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); font-family: var(--display); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 12px;
  padding: .8rem 1rem; color: var(--text); font-family: var(--font); font-size: .95rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.25); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form-note { font-size: .85rem; color: var(--emerald); margin: 0; }
.form-note a { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 0 1.6rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand .brand-text { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.footer-brand p { margin: .6rem 0 0; font-size: .92rem; max-width: 320px; }
.footer-address { color: var(--muted-2); font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.footer-nav a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; color: var(--muted-2); font-size: .84rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .featured, .about-grid, .contact-card { grid-template-columns: 1fr; gap: 2rem; }
  .featured-visual { order: -1; }
}
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,14,26,0.98); border-bottom: 1px solid var(--border);
    padding: 1rem 24px 1.6rem; transform: translateY(-120%); transition: transform .35s ease; z-index: 55;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav-links a.nav-cta { text-align: center; margin-top: .8rem; border: 0; }
  .nav-toggle { display: flex; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .cta-band { text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
