/* ==========================================================================
   LogoVisionary — Global stylesheet
   Light, elegant design system. Dark footer. AIDNAS micro-tools family.
   ========================================================================== */

:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --surface-3: #E9EEF6;
  --ink: #1B2430;
  --muted: #5B6B7C;
  --faint: #8493A5;
  --border: #E3E8F0;
  --border-strong: #D5DCE8;

  --primary: #6C63FF;
  --primary-600: #5B52F0;
  --primary-soft: #EEECFF;
  --accent: #38BDF8;
  --accent-soft: #E6F6FF;
  --success: #34D399;
  --success-soft: #E7F8F1;
  --warn: #FBBF24;
  --danger: #F87171;

  --footer: #101828;
  --footer-2: #1A2436;
  --footer-text: #C6D0DE;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow: 0 14px 36px -14px rgba(16, 24, 40, .20);
  --shadow-lg: 0 34px 70px -26px rgba(43, 38, 110, .30);
  --maxw: 1200px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .35rem 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .12em .4em;
  font-size: .9em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head h2 { margin-bottom: .5rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--primary-600);
  background: var(--primary-soft); border-radius: 999px;
  padding: .38rem .8rem; margin-bottom: 1rem;
}
.eyebrow--neutral { color: var(--muted); background: var(--surface-2); }

.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .98rem; font-weight: 600;
  line-height: 1; text-decoration: none; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6C63FF 0%, #857BFF 55%, #38BDF8 130%);
  box-shadow: 0 12px 26px -12px rgba(108, 99, 255, .7);
}
.btn--primary:hover { box-shadow: 0 16px 34px -12px rgba(108, 99, 255, .8); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-600); }
.btn--light { background: #fff; color: var(--primary-600); border-color: transparent; }
.btn--dark { background: var(--footer); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .86rem; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row--center { justify-content: center; }

/* ------------------------------------------------------------------ */
/* Header / navigation                                                 */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; }
.brand__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.24rem;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand__word span { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  position: relative; color: var(--muted); font-weight: 500; font-size: .95rem;
  text-decoration: none; padding: .25rem 0;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.is-active { color: var(--ink); font-weight: 600; }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.site-nav .nav__cta { color: #fff; }
.site-nav .nav__cta:hover { color: #fff; }
.site-nav .nav__cta.is-active::after { display: none; }
.nav__cta--lg { padding: 12px 24px; font-size: .96rem; }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero { padding: 84px 0 40px; text-align: center; }
.hero__inner { max-width: 880px; margin: 0 auto; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { max-width: 62ch; margin: 0 auto 1.7rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.7rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .4rem .85rem; box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* ------------------------------------------------------------------ */
/* Embedded editor band                                                */
/* ------------------------------------------------------------------ */
.editor-band { padding: 6px 0 72px; }
.editor-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.editor-note {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 13px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, #FBFBFF, #F2FBFF);
}
.editor-note p { margin: 0; font-size: .88rem; color: var(--muted); }
.editor-note strong { color: var(--ink); }
.editor-note .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); margin-right: .45rem;
}

/* ------------------------------------------------------------------ */
/* Feature grids                                                       */
/* ------------------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCD6FF; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-600); margin-bottom: 16px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature--accent .feature__icon { background: var(--accent-soft); color: #0284C7; }
.feature--success .feature__icon { background: var(--success-soft); color: #059669; }
.feature h3 { margin-bottom: .4rem; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------------ */
/* Split / media sections                                              */
/* ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img {
  display: block; width: 100%; border-radius: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.split h2 { margin-bottom: .6rem; }
.split .lead { margin-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; color: var(--muted); font-size: .97rem; }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

/* ------------------------------------------------------------------ */
/* Steps                                                               */
/* ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.step__num {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-600);
  font-family: var(--font-display); font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------------ */
/* Tools (AIDNAS family)                                               */
/* ------------------------------------------------------------------ */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCD6FF; }
.tool img { display: block; width: 100%; aspect-ratio: 560 / 340; object-fit: cover; border-bottom: 1px solid var(--border); }
.tool__body { padding: 20px; }
.tool__body h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.tool__body p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------------ */
/* Call-to-action band                                                 */
/* ------------------------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(900px 320px at 12% 0%, rgba(56, 189, 248, .35), transparent 60%),
              linear-gradient(135deg, #6C63FF 0%, #5B52F0 58%, #4C46C9 100%);
  color: #fff; border-radius: 28px; padding: 54px 28px; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 58ch; margin: 0 auto 1.6rem; }

/* ------------------------------------------------------------------ */
/* Footer (dark)                                                       */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--footer); color: var(--footer-text); margin-top: 80px; padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 44px;
}
.brand--footer .brand__word { color: #fff; }
.brand--footer .brand__word span { color: #9D97FF; }
.footer-tagline { color: #9AA7B8; font-size: .92rem; margin: 16px 0 20px; max-width: 34ch; }
.social { display: flex; gap: 10px; }
.social__link {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--footer-2); color: var(--footer-text);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social__link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h2 {
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: #8B98AA; font-weight: 600; margin: 0 0 14px;
}
.footer-col a { display: block; color: var(--footer-text); font-size: .94rem; margin: 9px 0; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: #8B98AA;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* Inner page hero + prose                                             */
/* ------------------------------------------------------------------ */
.page-hero { padding: 64px 0 12px; text-align: center; }
.page-hero .lead { max-width: 64ch; margin: 0 auto; }
.prose { max-width: 820px; margin: 0 auto; }
.prose > p, .prose > ul li, .prose > ol li { color: var(--muted); }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.card-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.card-block + .card-block { margin-top: 20px; }

/* ------------------------------------------------------------------ */
/* FAQ accordion                                                       */
/* ------------------------------------------------------------------ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: .96rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */
.form { display: grid; gap: 16px; max-width: 660px; }
.form--center { margin-inline: auto; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--faint); }
.alert { padding: 12px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 4px; }
.alert--ok { background: var(--success-soft); color: #047857; border: 1px solid #B7EAD6; }
.alert--info { background: var(--accent-soft); color: #0369A1; border: 1px solid #BAE6FD; }
.alert--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* ------------------------------------------------------------------ */
/* Utility                                                             */
/* ------------------------------------------------------------------ */
.stack-sm > * + * { margin-top: .5rem; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }

/* Studio header */
.studio-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.studio-head__inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 30px; padding-bottom: 26px;
}
.studio-head .eyebrow { margin-bottom: .6rem; }
.studio-head__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.studio-head__sub { margin: 0; color: var(--muted); }
.studio-head__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }
.pill-note {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--success-soft); color: #047857; border-radius: 999px;
  padding: .45rem .9rem; font-size: .85rem; font-weight: 500;
}
.pill-note svg { width: 16px; height: 16px; }

/* 404 */
.error-hero { text-align: center; padding: 88px 0 40px; }
.error-code {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(4.5rem, 15vw, 9rem);
  background: linear-gradient(135deg, #6C63FF, #38BDF8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
