/* ==========================================================================
   2TINYCREATIONS LLC — Design System
   Dark premium aesthetic · gradient mesh · glassmorphism
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg:        #06070d;
  --bg-2:      #0a0c16;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  /* text */
  --text:      #eef0f8;
  --muted:     #9aa1b9;
  --faint:     #6b7191;

  /* brand */
  --violet:    #8b5cff;
  --blue:      #3b82f6;
  --cyan:      #22d3ee;
  --pink:      #ff6ba6;
  --grad:      linear-gradient(115deg, #8b5cff 0%, #3b82f6 45%, #22d3ee 100%);
  --grad-warm: linear-gradient(115deg, #ff6ba6 0%, #8b5cff 100%);

  /* shape */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* layout */
  --max:  1180px;
  --gut:  clamp(20px, 5vw, 48px);

  /* type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow:   0 0 0 1px rgba(139, 92, 255, 0.25), 0 20px 60px -20px rgba(139, 92, 255, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: rgba(139, 92, 255, 0.4); color: #fff; }

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-fx .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite;
}
.bg-fx .orb-1 { width: 520px; height: 520px; top: -120px; left: -80px;  background: radial-gradient(circle, #8b5cff, transparent 70%); }
.bg-fx .orb-2 { width: 620px; height: 620px; top: 18%;    right: -160px; background: radial-gradient(circle, #22d3ee, transparent 70%); animation-delay: -7s; opacity: 0.4; }
.bg-fx .orb-3 { width: 540px; height: 540px; bottom: -160px; left: 30%;  background: radial-gradient(circle, #ff6ba6, transparent 70%); animation-delay: -13s; opacity: 0.32; }
.bg-fx::after { /* grid + grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 50px) scale(1.08); }
  66%      { transform: translate(-30px, 20px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-fx .orb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vw, 130px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--violet); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-block: 18px 16px; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.gradient-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: 9px;
  font-family: var(--display); font-weight: 600; font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(139,92,255,.4), 0 26px 70px -18px rgba(139,92,255,.7); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--violet); }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(6, 7, 13, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(6, 7, 13, 0.82); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand b { font-size: 1.02rem; }
.brand b span { color: var(--violet); }
.brand small { display: block; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.22em; color: var(--faint); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 0.93rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); transition: transform .25s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(60px, 9vw, 96px); padding-bottom: clamp(48px, 8vw, 84px); position: relative; }
.hero-inner { text-align: center; max-width: 880px; margin-inline: auto; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-block: 26px 22px; }
.hero .lead { max-width: 620px; margin-inline: auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: var(--faint); font-size: 0.86rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--cyan); }

/* marquee */
.marquee { margin-top: clamp(48px, 7vw, 76px); border-block: 1px solid var(--border); padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); overflow: hidden; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-weight: 500; font-size: 1.02rem; color: var(--faint); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--violet); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Bento / Services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, background .35s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { transform: translateY(-5px); background: var(--surface-2); }
.card:hover::before { opacity: 0.7; }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(139,92,255,.22), rgba(34,211,238,.12)); border: 1px solid var(--border-2); margin-bottom: 20px; }
.card .ico svg { width: 24px; height: 24px; color: #cdbcff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.card .tags li { font-size: 0.76rem; color: var(--muted); padding: 5px 11px; border: 1px solid var(--border); border-radius: 100px; background: rgba(255,255,255,.02); }
.card.col-3 { grid-column: span 3; }
.card.col-2 { grid-column: span 2; }
.card.col-6 { grid-column: span 6; }
.card.feature { background: linear-gradient(160deg, rgba(139,92,255,.14), rgba(34,211,238,.05)); }
.card.feature .ico { background: var(--grad); }
.card.feature .ico svg { color: #fff; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px 24px; position: relative; }
.step .num { font-family: var(--display); font-size: 0.82rem; font-weight: 700; color: var(--violet); letter-spacing: 0.1em; }
.step h3 { font-size: 1.12rem; margin-block: 12px 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 30px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.stat b { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.7rem); display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.88rem; margin-top: 10px; display: block; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px 30px; position: relative; transition: transform .3s, border-color .3s; }
.plan:hover { transform: translateY(-4px); }
.plan.featured { background: linear-gradient(170deg, rgba(139,92,255,.16), rgba(34,211,238,.04)); border-color: var(--border-2); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-family: var(--display); font-size: 2.6rem; font-weight: 600; margin-block: 14px 4px; letter-spacing: -0.03em; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan .desc { color: var(--muted); font-size: 0.92rem; min-height: 44px; }
.plan ul { display: grid; gap: 12px; margin-block: 24px; }
.plan li { display: flex; gap: 11px; font-size: 0.93rem; color: var(--text); }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--cyan); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--faint); font-size: 0.86rem; margin-top: 26px; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.checklist { display: grid; gap: 16px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--violet); }
.checklist b { display: block; font-family: var(--display); }
.checklist span { color: var(--muted); font-size: 0.92rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow); }
.panel .glow-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.panel .glow-row:last-child { border-bottom: 0; }
.panel .glow-row .pic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); flex: none; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; }
.panel .glow-row small { color: var(--faint); display: block; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; border-radius: var(--r-xl); padding: clamp(44px, 7vw, 76px); text-align: center; overflow: hidden; background: linear-gradient(150deg, rgba(139,92,255,.2), rgba(34,211,238,.08)); border: 1px solid var(--border-2); }
.cta-banner::before { content: ""; position: absolute; width: 420px; height: 420px; background: radial-gradient(circle, rgba(139,92,255,.5), transparent 70%); top: -180px; left: 50%; transform: translateX(-50%); filter: blur(40px); }
.cta-banner > * { position: relative; }
.cta-banner h2 { max-width: 640px; margin-inline: auto; }
.cta-banner .lead { max-width: 520px; margin: 16px auto 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ico { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(160deg, rgba(139,92,255,.22), rgba(34,211,238,.12)); border: 1px solid var(--border-2); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 21px; height: 21px; color: #cdbcff; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card a, .contact-card p { color: var(--muted); font-size: 0.95rem; word-break: break-word; }
.contact-card a:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 56px 36px; margin-top: clamp(60px, 9vw, 110px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-top p { color: var(--muted); font-size: 0.92rem; max-width: 320px; margin-top: 16px; }
.footer-col h4 { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; color: var(--faint); font-size: 0.85rem; }
.footer-bottom .legal-name { color: var(--muted); }
.footer-bottom .legal-name b { color: var(--text); font-family: var(--display); }

/* ---------- Legal pages ---------- */
.legal { padding-top: clamp(48px, 7vw, 80px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal .updated { color: var(--faint); font-size: 0.9rem; margin-top: 12px; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 1.1rem; margin-top: 26px; margin-bottom: 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--display); font-size: 0.9rem; margin-bottom: 28px; }
.legal .back:hover { color: var(--text); }
.legal .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 26px; margin-block: 24px; }
.legal .box p:last-child { margin-bottom: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px var(--gut) 24px; background: rgba(8,9,18,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px); }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .bento, .steps, .stats, .pricing, .split, .contact-grid { grid-template-columns: 1fr; }
  .card.col-2, .card.col-3, .card.col-6 { grid-column: auto; }
  .steps, .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .plan.featured { order: -1; }
}
@media (max-width: 540px) {
  .steps, .stats { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
  .card { padding: 24px; }
}
