/* Fourth Dimension - fddst.net */
:root {
  --ink: #0e1630;
  --ink-2: #3b4664;
  --muted: #6a7390;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --navy: #0a1433;
  --navy-2: #13204a;
  --brand: #3557f5;
  --brand-2: #7b4dff;
  --brand-ink: #2440c9;
  --ok: #138a5b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 22, 48, .06), 0 8px 24px rgba(14, 22, 48, .06);
  --wrap: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.35em; border-radius: 10px; font-weight: 640; font-size: .98rem; border: 1px solid transparent; transition: background .15s, box-shadow .15s, transform .15s; text-decoration: none !important; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(53, 87, 245, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(53, 87, 245, .35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 760; font-size: 1.12rem; letter-spacing: -.01em; text-decoration: none !important; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font-size: .68rem; font-weight: 560; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: -3px; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu > li { position: relative; }
.menu a, .menu button { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font: inherit; font-size: .95rem; font-weight: 560; background: none; border: 0; cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.menu .new { font-size: .66rem; font-weight: 700; color: #fff; background: var(--brand-2); border-radius: 99px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.dropdown { position: absolute; top: calc(100% + 8px); left: -12px; width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(14, 22, 48, .14); }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { display: grid; }
.has-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown a { padding: 10px 12px; }
.dropdown a strong { display: block; color: var(--ink); font-size: .94rem; }
.dropdown a span { display: block; color: var(--muted); font-size: .82rem; font-weight: 450; line-height: 1.4; }
.nav-cta { margin-left: 8px; padding: .62em 1.1em; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .menu, .nav-cta { display: none; }
  .nav.open { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .nav.open .menu { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 8px 0 0; order: 3; }
  .nav.open .nav-cta { display: inline-flex; order: 4; margin: 8px 0 4px; justify-content: center; width: 100%; }
  .dropdown { position: static; width: auto; display: grid; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .dropdown a span { display: none; }
  .has-dd > button { pointer-events: none; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 85% -10%, rgba(123, 77, 255, .45), transparent 60%), radial-gradient(900px 500px at 0% 110%, rgba(53, 87, 245, .35), transparent 60%), var(--navy); color: #fff; }
.hero h1, .hero h2 { color: #fff; }
.hero .lead { color: #c9d1ec; font-size: 1.2rem; max-width: 620px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero-note { margin-top: 14px; font-size: .9rem; color: #9aa6cf; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.hero .eyebrow { color: #b8a6ff; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #dfe4f7; font-size: .86rem; margin-bottom: 22px; text-decoration: none !important; }
.pill b { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: .74rem; letter-spacing: .03em; }
.page-hero { padding-top: 76px; padding-bottom: 64px; }
.page-hero .lead { max-width: 720px; }
.crumbs { font-size: .86rem; color: #9aa6cf; margin-bottom: 14px; }
.crumbs a { color: #c9d1ec; }

/* Product frame */
.frame { border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(3, 8, 30, .45); overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef1f8; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5e6; }
.frame img { width: 100%; }
.section .frame { box-shadow: var(--shadow); border-color: var(--line); }

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #c9d1ec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.section-dark .section-head p { color: #c9d1ec; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card h3 { margin-top: 14px; }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: #c8d1f5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link .more { display: inline-block; margin-top: 14px; color: var(--brand-ink); font-weight: 620; font-size: .94rem; }
.section-dark .card { background: var(--navy-2); border-color: rgba(255, 255, 255, .1); }
.section-dark .card p { color: #b3bddf; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(53, 87, 245, .12), rgba(123, 77, 255, .14)); color: var(--brand-ink); }
.icon svg { width: 24px; height: 24px; }
.section-dark .icon { background: rgba(123, 77, 255, .2); color: #c9b9ff; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split + .split { margin-top: 96px; }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.split p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(19, 138, 91, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23138a5b'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.2 1.2 4.6 4.6 9.4-9.4-1.2-1.2z'/%3E%3C/svg%3E") center/14px no-repeat; }
.section-dark .ticks li { color: #c9d1ec; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stats > div { padding: 26px 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-size: 1.7rem; letter-spacing: -.02em; color: var(--ink); }
.stats span { color: var(--muted); font-size: .92rem; }

/* Steps */
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .92rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(53, 87, 245, .15); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 32px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; }
.plan h3 { font-size: 1.25rem; margin: 0 0 6px; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { margin: 18px 0 4px; font-size: 2.6rem; font-weight: 780; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 520; color: var(--muted); letter-spacing: 0; }
.price-sub { color: var(--ink-2); font-size: .95rem; min-height: 1.6em; }
.plan .ticks { flex: 1; margin: 22px 0 26px; }
.plan .btn { justify-content: center; }
.fine { color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 640; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

/* CTA band */
.cta-band { background: radial-gradient(700px 300px at 90% 0%, rgba(123, 77, 255, .5), transparent 70%), var(--navy); color: #c9d1ec; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* Article / prose */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.06rem; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.08rem; margin-top: 1.4em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose img { margin: 1.6em auto; border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); }
.meta { color: #9aa6cf; font-size: .95rem; }
.cover { max-width: 960px; margin: -40px auto 48px; position: relative; }
.cover img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: inherit; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e8ecfb, #efe8ff); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; }
.post-card time { font-size: .84rem; color: var(--muted); }
.post-card h3 { font-size: 1.06rem; margin: 6px 0 8px; }
.post-card p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card h3 { margin: 0 0 4px; }

/* Footer */
.site-footer { background: var(--navy); color: #9aa6cf; padding: 72px 0 32px; font-size: .94rem; margin-top: 0; }
.site-footer a { color: #c9d1ec; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #9aa6cf; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }

@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .g3, .g4, .plans, .posts { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .g2, .g3, .g4, .plans, .posts { grid-template-columns: 1fr; }
  .split + .split { margin-top: 64px; }
  .cta-band { padding: 32px 24px; border-radius: 16px; }
  .foot { grid-template-columns: 1fr; }
  .card, .plan { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
