/* DAYOCON — global styles. Dark theme by default; light theme via [data-theme="light"]. */

:root {
  --bg: #08080c;
  --bg-soft: #0d0d14;
  --surface: #12121b;
  --surface-hover: #171723;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f0f0f5;
  --muted: #a3a3b5;
  --accent: #6a48f5;
  --accent-hover: #7b5cff;
  --accent-text: #a995ff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --glow: rgba(110, 80, 255, 0.28);
  --grid: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(8, 8, 12, 0.72);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --surface: #ffffff;
  --surface-hover: #fafaff;
  --border: rgba(15, 15, 40, 0.1);
  --border-strong: rgba(15, 15, 40, 0.22);
  --text: #0e0e16;
  --muted: #555568;
  --accent: #5b3df5;
  --accent-hover: #4a2ee0;
  --accent-text: #5234e0;
  --accent-soft: rgba(91, 61, 245, 0.08);
  --glow: rgba(110, 80, 255, 0.16);
  --grid: rgba(15, 15, 40, 0.045);
  --header-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 20px 50px -24px rgba(30, 20, 90, 0.25);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; color: var(--text); }
.logo svg { height: 26px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

/* Mobile-first nav: dropdown panel */
.site-nav {
  display: none;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  box-shadow: var(--shadow);
}
.site-nav.open { display: block; animation: nav-in 0.2s ease; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-nav ul { display: flex; flex-direction: column; gap: 2px; }
.site-nav a:not(.btn) {
  display: block; padding: 12px 10px; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 0.975rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a:not(.btn):hover { background: var(--accent-soft); }
.site-nav .nav-cta { margin-top: 10px; }
.site-nav .nav-cta .btn { width: 100%; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none;
    margin-left: auto;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px; }
  .site-nav a:not(.btn) { padding: 8px 12px; font-size: 0.925rem; }
  .site-nav .nav-cta { margin: 0 0 0 10px; }
  .site-nav .nav-cta .btn { width: auto; }
  .header-actions { order: 3; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(180deg, #7352ff, #5b3df5);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 24px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 12px 30px -8px var(--glow); background: linear-gradient(180deg, #7d5eff, #6446f7); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-text); }
.btn-sm { padding: 9px 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Sections & typography ---------- */
.section { padding: 72px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 820px) { .section { padding: 104px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.gradient-text {
  background: linear-gradient(92deg, #a995ff 0%, #6f9bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .gradient-text { background-image: linear-gradient(92deg, #5b3df5 0%, #2f6bf0 100%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 76px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 900px; height: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.25rem); letter-spacing: -0.04em; font-weight: 700; line-height: 1.05; }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin: 22px auto 0; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-meta { margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 820px) { .hero { padding: 128px 0 112px; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--accent-soft);
  color: var(--text); font-size: 0.8rem; font-weight: 500; margin-bottom: 22px;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }

.page-hero { padding: 64px 0 24px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -320px; width: 800px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); letter-spacing: -0.035em; }
.page-hero p.lead { color: var(--muted); font-size: 1.1rem; margin-top: 16px; max-width: 640px; }
.page-hero.center { text-align: center; }
.page-hero.center p.lead { margin-left: auto; margin-right: auto; }
@media (min-width: 820px) { .page-hero { padding: 96px 0 32px; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--border);
}
.card .icon svg { width: 20px; height: 20px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent-text); font-weight: 600; font-size: 0.9rem; }
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(3px); }

.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg) scale(0.8); transform-origin: left center;
}

/* ---------- Product / split ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.split h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.split .text p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-text), transparent); opacity: 0.6;
}
.panel h3 { font-size: 1.15rem; }
.panel > p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; margin-top: 20px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong);
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.7; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.85rem; }
.form-note a, .prose a, .inline-link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form-note a:hover, .prose a:hover, .inline-link:hover { text-decoration-thickness: 2px; }
.inline-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
@media (min-width: 520px) { .inline-form { flex-direction: row; } .inline-form .input { flex: 1; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 14px;
}

/* ---------- Tech chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 500; font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chip:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-2px); }

/* ---------- Facts ---------- */
.facts { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts > div { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.facts dd { margin: 4px 0 0; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
  .facts > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 56px 24px;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, var(--glow), transparent 70%), var(--surface);
}
.cta-box h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-box p { color: var(--muted); margin: 14px auto 0; max-width: 520px; }
.cta-box .hero-actions { margin-top: 28px; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin: 28px auto 0;
}
.billing-toggle button {
  border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 0.9rem; color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.billing-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.billing-toggle .save { font-weight: 500; opacity: 0.85; }

.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text), var(--shadow); }
.plan-tag {
  position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600;
}
.plan h3 { font-size: 1.15rem; }
.plan .plan-desc { min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.price .amount { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.price .period { color: var(--muted); font-size: 0.95rem; }
.price-alt { color: var(--muted); font-size: 0.875rem; margin-top: 8px; }
.plan .check-list { margin: 22px 0 26px; flex: 1; }
.notice {
  border: 1px solid var(--border); border-left: 3px solid var(--accent-text); background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text); font-size: 0.95rem;
}
.notice a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 14px; margin-top: 8px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--border); }
.contact-item .icon svg { width: 18px; height: 18px; }
.contact-item .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.contact-item a:hover { color: var(--accent-text); }
address { font-style: normal; }

/* ---------- Legal prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 12px; scroll-margin-top: 88px; }
.prose h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 12px 0; }
.prose ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { font-size: 0.9rem; }
.prose .caps { font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--bg-soft); }
.footer-top { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.footer-col h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a, .footer-col li { font-size: 0.925rem; color: var(--text); overflow-wrap: anywhere; }
.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  color: var(--muted); font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--text); }
.footer-bottom .sep { opacity: 0.5; }

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
