/* Main Index Page Styles */
@font-face { 
    font-family: 'Figtree'; 
    font-style: normal; 
    font-weight: 300 900; 
    font-display: swap; 
    src: url(https://fonts.gstatic.com/s/figtree/v9/_Xms-HUzqDCFdgfMm4S9DQ.woff2) format('woff2'); 
}
@font-face { 
    font-family: 'Fragment Mono'; 
    font-style: normal; 
    font-weight: 400; 
    font-display: swap; 
    src: url(https://fonts.gstatic.com/s/fragmentmono/v6/4iCr6K5wfMRRjxp0DA6-2CLnB4NHhg.woff2) format('woff2'); 
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-font-smoothing: antialiased; 
}
html, body {
    width: 100%;
    min-height: 100vh;
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
h1,h2,h3,h4,h5,h6,p { margin: 0; }

:root {
    --purple:        #814ac8;
    --purple-light:  #df7afe;
    --black:         #000000;
    --border:        #222222;
    --text-muted:    #cccccc;
    --text-white:    #ffffff;
    --white-80:      #ffffffcc;
    --white-75:      #ffffffbf;
    --white-10:      #ffffff1a;
    --bg-card:       #0d0d0d;
    --bg-card-border:#1a1a1a;
}

body {
    background: var(--black);
    color: var(--text-white);
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

#star-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

section { position: relative; z-index: 1; }

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}
.nav-logo {
    font-family: 'Fragment Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.04em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-white); }
@media (max-width: 700px) {
    .nav-links { display: none; }
}
.nav-cta {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.nav-cta:hover { background: #9a63dc; }

/* Hero rotating text */
.rotate-line {
    position: relative;
    display: inline-block;
    height: 1.15em;
    line-height: 1.15;
    overflow: hidden;
}
.rotate-word {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(120%);
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.55s ease;
    will-change: transform, opacity;
}
.rotate-word.is-current {
    position: relative;
    transform: translateY(0);
    opacity: 1;
}
.rotate-word.is-past {
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
    .rotate-word { transition: none; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 32px 60px;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-block;
    font-family: 'Fragment Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--purple-light);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(223,122,254,0.3);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-title {
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.6s forwards;
}
.hero-title .line-purple {
    display: block;
    color: var(--purple);
}
.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.9s ease 0.8s forwards;
}
.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease 1s forwards;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--purple);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { 
    background: #9a63dc; 
    transform: translateY(-1px); 
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: border-color 0.2s, transform 0.15s;
}
.btn-outline:hover { 
    border-color: rgba(255,255,255,0.5); 
    transform: translateY(-1px); 
}

/* Hero glow */
.hero-glow {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(129,74,200,0.25) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

/* Section Styles */
.section-label {
    font-family: 'Fragment Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 16px;
    display: block;
}
.section-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 12px;
    max-width: 500px;
}
.section-pad { padding: 100px 0; }

/* Services Section */
.services-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media(max-width: 820px) { .services-wrap { grid-template-columns: 1fr; } }
.services-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: block;
}
.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white-10);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--white-80);
    font-weight: 500;
}
.tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--purple-light);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Safe Code Section */
.safe-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media(max-width: 820px) { .safe-wrap { grid-template-columns: 1fr; } }
.safe-image { order: 2; }
.safe-content { order: 1; }
@media(max-width: 820px) {
    .safe-image { order: 1; }
    .safe-content { order: 2; }
}
.safe-image img {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
}
.safe-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 28px;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
}
.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 20px;
    align-self: start;
}
.process-card:nth-child(1) { grid-column: 1 / span 6; }
.process-card:nth-child(2) { grid-column: 7 / span 6; }
.process-card:nth-child(3) { grid-column: 1 / span 5; }
.process-card:nth-child(4) { grid-column: 6 / span 7; }
.process-step {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--purple-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.process-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.process-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
@media(max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-card:nth-child(n) { grid-column: auto; }
}
@media(max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* Benefits Section */
.benefits-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.benefits-header .section-desc { margin: 12px auto 0; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media(max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width: 520px)  { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
    background: #080808;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.benefit-card:hover { 
    transform: translateY(-2px); 
}
.benefit-icon {
    width: 40px; height: 40px;
    background: rgba(129,74,200,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.benefit-icon svg { 
    width: 20px; 
    height: 20px; 
    color: var(--purple-light); 
}
.benefit-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.benefit-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Section */
.faq-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    padding: 22px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s;
}
.faq-btn:hover { color: var(--purple-light); }
.faq-chevron {
    width: 20px; height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--purple);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s;
}
.faq-item.open .faq-body { max-height: 300px; }
.faq-body p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    padding-bottom: 22px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    z-index: 1;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    font-family: 'Fragment Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--purple);
}
.footer-copy {
    font-size: 13px;
    color: #555;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 13px;
    color: #555;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple-light); }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: radial-gradient(ellipse 70% 70% at 50% 100%, rgba(129,74,200,0.14) 0%, transparent 70%);
}
.cta-box {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}
.cta-box .section-desc { max-width: 460px; }

/* Glow divider */
.glow-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129,74,200,0.4), transparent);
    margin: 0;
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    margin-top: 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-brand {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--purple-light);
    letter-spacing: 0.05em;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--purple-light);
}
.footer-sep {
    color: var(--border);
}
.footer-copy {
    font-size: 12px;
    color: #555;
}
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Calm purple theme */
:root {
    --purple: #9a82b5;
    --purple-light: #d0c0df;
    --black: #15121a;
    --border: #3a3045;
    --text-muted: #b7afbd;
    --white-10: #ffffff0d;
    --bg-card: #201a27;
}
body { background: var(--black); }
#star-canvas, .hero-glow { display: none; }
nav { background: rgba(21,18,26,.96); backdrop-filter: none; }
.nav-cta, .btn-primary { background: var(--purple); color: #17121d; }
.nav-cta:hover, .btn-primary:hover { background: #b59dca; }
.btn-outline { border-color: #624d73; }
.hero { min-height: 82vh; padding: 76px 24px 48px; }
.hero-title .line-purple { color: var(--purple-light); }
.section-pad { padding: 68px 0; }
section.section-pad:nth-of-type(even) { background: #1b1522; }
section.section-pad:nth-of-type(odd) { background: #15121a; }
.glow-divider { background: var(--border); }
.services-image img { border-color: #584268; border-radius: 10px; }
.tag { border-color: #4a3958; border-radius: 5px; }
.tag::before { background: var(--purple); }
.safe-image img { border-color: #5c4560; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
}
.feature-card {
    background: rgba(154,130,181,.07);
    border: 1px solid #493956;
    border-radius: 8px;
    padding: 20px;
    min-height: 150px;
    align-self: start;
    transition: border-color .2s, background .2s, transform .2s;
}
.feature-card:hover { background: rgba(154,130,181,.12); border-color: #80669a; transform: translateY(-2px); }
.feature-number { display: block; color: var(--purple-light); font-family: 'Fragment Mono',monospace; font-size: 11px; letter-spacing: .1em; margin-bottom: 22px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.safe-features-grid { margin-top: 28px; }

.process-step, .faq-chevron { color: var(--purple-light); }
.benefits-grid { grid-template-columns: repeat(12,minmax(0,1fr)); }
.benefit-card { position: relative; overflow: hidden; background: var(--bg-card); border-radius: 10px; padding: 22px 20px; align-self: start; transition: box-shadow 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.benefit-card:nth-child(1) { grid-column: 1 / span 7; box-shadow: inset 0 3px 0 0 var(--accent); }
.benefit-card:nth-child(2) { grid-column: 8 / span 5; box-shadow: inset -3px 0 0 0 var(--accent); }
.benefit-card:nth-child(3) { grid-column: 1 / span 5; box-shadow: inset 0 -3px 0 0 var(--accent); }
.benefit-card:nth-child(4) { grid-column: 6 / span 7; box-shadow: inset 3px 0 0 0 var(--accent); }
.benefit-card:nth-child(5) { grid-column: 1 / span 6; box-shadow: inset 0 3px 0 0 var(--accent), inset -3px 0 0 0 var(--accent); }
.benefit-card:nth-child(6) { grid-column: 7 / span 6; box-shadow: inset 0 -3px 0 0 var(--accent), inset 3px 0 0 0 var(--accent); }
.benefit-card:nth-child(1) { --accent:#9a82b5; }
.benefit-card:nth-child(2) { --accent:#ad91a6; }
.benefit-card:nth-child(3) { --accent:#b49a68; }
.benefit-card:nth-child(4) { --accent:#a681a6; }
.benefit-card:nth-child(5) { --accent:#ba8181; }
.benefit-card:nth-child(6) { --accent:#819d78; }
.benefit-card:hover { box-shadow: inset 0 0 0 3px var(--accent); }
.benefit-icon { background: color-mix(in srgb,var(--accent,var(--purple)) 16%,transparent); }
.benefit-icon svg { color: var(--accent,var(--purple-light)); }
.cta-section { padding: 80px 0; background: #21182b; }
.site-footer { background: #100d14; }
@media(max-width:900px) {
    .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .benefits-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .benefit-card:nth-child(n) { grid-column:auto; }
}
@media(max-width:820px) { .safe-features-grid { grid-template-columns: 1fr; } }
@media(max-width:520px) {
    .features-grid, .benefits-grid { grid-template-columns: 1fr; }
}

/* Blocked-page visual language */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--black);
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(181,157,202,.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
nav {
    position: relative;
    padding: 24px 5%;
    background: rgba(21,18,26,.9);
    backdrop-filter: blur(20px);
}
.nav-inner {
    height: auto;
    max-width: none;
    padding: 0;
}
.nav-logo {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nav-links { gap: 12px; }
.nav-links a {
    font-size: 12px;
    padding: 10px 18px;
    letter-spacing: .5px;
}
.nav-cta { border-radius: 4px; padding: 11px 24px; font-size: 12px; letter-spacing: .5px; }
.hero-title, .section-title { font-family: 'IBM Plex Sans', sans-serif; }
.hero-title { letter-spacing: -1px; }
.section-label, .feature-number, .process-step { font-family: 'Space Mono', monospace; }
.btn-primary, .btn-outline { border-radius: 4px; }
.services-image img, .safe-image img { border-radius: 4px; }
.feature-card, .benefit-card, .process-card { border-radius: 4px; }
.feature-card { background: rgba(255,255,255,.02); }
.process-card { background: rgba(255,255,255,.02); }
.benefit-card { background: rgba(255,255,255,.035); }
.cta-section { background: #1b1522; }
.site-footer { padding: 32px 5%; }
@media(max-width:700px) { nav { padding: 20px 24px; } }
