/*
Theme Name: Standardico
Theme URI: https://standardico.com
Author: ALFICOM
Author URI: https://alficom.com
Description: Marketing site theme for Standardico (document control, records and ISO standards), in the ALFICOM visual style.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: standardico
*/

:root {
    --deep: #130322;
    --purple: #390c68;
    --purple-2: #4b108a;
    --indigo: #332e97;
    --violet: #4f2e94;
    --navy: #031b8e;
    --blue: #0035ff;
    --blue-2: #0845fb;
    --white: #ffffff;
    --text-dim: rgba(255, 255, 255, .7);
    --text-faint: rgba(255, 255, 255, .5);
    --line: rgba(255, 255, 255, .12);
    --paper: #ffffff;
    --ink: #1b1530;
    --ink-dim: #5b5670;
    --radius: 14px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--indigo);
    background: linear-gradient(150deg, var(--indigo) 0%, var(--violet) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 96px; display: flex; align-items: center;
    transition: background .3s ease-in, height .3s ease-in, box-shadow .3s;
}
.site-header.scrolled, body:not(.home) .site-header { background: rgba(19, 3, 34, .92); backdrop-filter: blur(8px); height: 76px; box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: 6px; font-size: 20px; text-transform: uppercase; }
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo small { display: block; font-size: 9px; letter-spacing: 3px; font-weight: 400; color: var(--text-faint); margin-top: -2px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 11px; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; color: var(--text-dim); transition: color .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--white); }
.main-nav .nav-cta a { color: var(--white); border: 2px solid var(--blue-2); border-radius: 999px; padding: 8px 18px; margin-left: 6px; }
.main-nav .nav-cta a:hover { background: var(--blue-2); }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: .2s; }

@media (max-width: 1180px) {
    .main-nav a { padding: 10px 8px; letter-spacing: 1px; font-size: 11px; }
    .logo { letter-spacing: 4px; }
}
@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .main-nav { position: fixed; inset: 76px 0 auto 0; background: var(--deep); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .main-nav.open { max-height: 80vh; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 24px; }
    .main-nav a { padding: 10px 14px; font-size: 13px; letter-spacing: 2px; }
    .main-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
    .site-header { height: 76px; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer;
    border: 2px solid var(--blue-2); color: var(--white); background: transparent; transition: background .15s, transform .15s, color .15s;
}
.btn:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-solid { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 30px rgba(0, 53, 255, .35); }
.btn-solid:hover { background: var(--blue-2); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--text-dim); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); color: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; top: 0; right: 0; width: 52%; height: 88%;
    background: var(--navy); opacity: .55; z-index: 0;
}
.hero::after {
    content: ""; position: absolute; top: 12%; right: 6%; width: 38vw; height: 38vw; max-width: 560px; max-height: 560px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0,53,255,.45) 0%, rgba(0,53,255,0) 70%); z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }
.eyebrow b { color: var(--blue-2); font-weight: 700; }
.hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; margin: 0 0 24px; font-weight: 800; text-transform: uppercase; letter-spacing: -1px; }
.hero h1 .light { font-weight: 300; opacity: .55; display: block; }
.hero h1 .blue { color: var(--blue-2); white-space: nowrap; }
.hero p.lead { font-size: 19px; font-weight: 300; color: var(--text-dim); max-width: 560px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }
@media (max-width: 960px) {
    .hero { min-height: 0; padding: 120px 0 70px; }
    .hero .container { grid-template-columns: 1fr; gap: 44px; }
    .hero::before { width: 100%; height: 55%; top: auto; bottom: 0; }
    .hero::after { display: none; }
}

/* app mockup: document register + revision history */
.mockup { background: #f5f7fa; color: #1f2937; border-radius: 16px; box-shadow: 0 40px 80px rgba(8, 0, 30, .55); overflow: hidden; font-size: 12px; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
@media (max-width: 960px) { .mockup { transform: none; } }
.mockup-bar { display: flex; gap: 6px; padding: 12px 14px; background: #111827; }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #374151; }
.mockup-bar span:nth-child(1) { background: #ef4444; } .mockup-bar span:nth-child(2) { background: #f59e0b; } .mockup-bar span:nth-child(3) { background: #10b981; }
.mockup-body { padding: 16px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.mock-card { background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; overflow: hidden; }
.mock-card + .mock-card { margin-top: 12px; }
.mock-card .h { padding: 8px 12px; background: #fafbfc; border-bottom: 1px solid #e3e8ef; font-weight: 600; }
.mock-doc, .mock-rev { display: grid; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eef1f5; }
.mock-doc:last-child, .mock-rev:last-child { border-bottom: 0; }
.mock-doc { grid-template-columns: 50px 1fr 26px 72px 84px; }
.mock-rev { grid-template-columns: 28px 78px 1fr 56px 72px; }
.mock-doc.head, .mock-rev.head { background: #fafbfc; color: #6b7280; font-size: 9.5px; letter-spacing: .3px; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.mock-doc .code { font-family: ui-monospace, monospace; color: #6b7280; }
.mock-doc .t small { display: block; color: #6b7280; }
.mock-doc .n, .mock-rev .n { font-weight: 600; }
.mock-doc .d, .mock-rev .d { color: #4b5563; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: #dcfce7; color: #166534; }
.chip.review { background: #fef9c3; color: #854d0e; }
.chip.due { background: #fee2e2; color: #991b1b; }
.chip.std { background: #e0e7ff; color: #3730a3; }
@media (max-width: 560px) {
    .mock-doc { grid-template-columns: 46px 1fr 70px; }
    .mock-doc > :nth-child(3), .mock-doc > :nth-child(5) { display: none; }
    .mock-rev { grid-template-columns: 30px 1fr 60px; }
    .mock-rev > :nth-child(2), .mock-rev > :nth-child(4) { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.dark { background: var(--deep); background: linear-gradient(180deg, var(--deep) 0%, var(--purple) 55%, var(--purple-2) 100%); }
.section.black { background: #000; }
.section-title { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 60px; }
.section-title h2 { margin: 0; font-size: clamp(44px, 7.5vw, 80px); line-height: 1; text-transform: uppercase; opacity: .5; font-weight: 300; }
.section-title h2 b { font-weight: 800; }
.section-title .section-subtitle { margin-left: -35px; font-size: 24px; font-weight: 300; position: relative; }
@media (max-width: 760px) {
    .section { padding: 80px 0; }
    .section-title { display: block; }
    .section-title .section-subtitle { margin-left: 0; display: block; margin-top: 10px; font-size: 19px; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); transition: border-color .2s, transform .2s, background .2s; }
.feature:hover { border-color: var(--blue-2); transform: translateY(-3px); background: rgba(8,69,251,.08); }
.feature.soon { border-style: dashed; }
.feature .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: rgba(8,69,251,.18); color: #7d9bff; margin-bottom: 20px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.feature p { margin: 0; color: var(--text-dim); font-weight: 300; font-size: 15px; }
.pill-soon { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(245,158,11,.18); color: #fcd34d; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; vertical-align: middle; white-space: nowrap; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* highlight band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.band h3 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 20px; text-transform: uppercase; font-weight: 800; }
.band h3 span { color: var(--blue-2); }
.band p { color: var(--text-dim); font-weight: 300; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { padding: 8px 0 8px 34px; position: relative; color: var(--text-dim); }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-box { padding: 30px; border-radius: var(--radius); background: rgba(3,27,142,.45); border: 1px solid var(--line); }
.stat-box b { display: block; font-size: 40px; font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-box span { color: var(--text-dim); font-size: 14px; font-weight: 300; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; gap: 40px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue-2); }
.step h3 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 1px; font-size: 18px; }
.step p { margin: 0; color: var(--text-dim); font-weight: 300; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* standards */
.std-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.std-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); display: flex; flex-direction: column; }
.std-card .code { align-self: flex-start; padding: 4px 14px; border-radius: 999px; background: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.std-card h3 { margin: 16px 0 8px; font-size: 19px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.std-card p { margin: 0 0 14px; color: var(--text-dim); font-weight: 300; font-size: 15px; }
.std-card .inside { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-faint); }
.std-more { margin-top: 36px; }
@media (max-width: 960px) { .std-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .std-grid { grid-template-columns: 1fr; } }

/* early access card */
.access { max-width: 900px; padding: 44px 40px; border: 2px solid var(--blue-2); border-radius: var(--radius); background: linear-gradient(160deg, rgba(8,69,251,.22), rgba(3,27,142,.35)); }
.access h3 { margin: 0 0 10px; font-size: 26px; text-transform: uppercase; letter-spacing: 1px; }
.access > p { margin: 0; color: var(--text-dim); font-weight: 300; font-size: 17px; max-width: 680px; }
.access .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* faq */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 300; color: var(--blue-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--text-dim); font-weight: 300; }

/* CTA band */
.cta { background: #000; padding: 90px 0; text-align: center; }
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); letter-spacing: 5px; color: var(--blue-2); font-weight: 400; margin: 0 0 30px; text-transform: none; }
.cta h2 span { color: var(--white); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: #000; border-top: 1px solid rgba(255,255,255,.08); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: var(--text-faint); font-size: 14px; font-weight: 300; max-width: 320px; }
.copyright { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.copyright span { color: var(--white); font-weight: 600; }
.disclaimer { margin: 18px 0 0; max-width: none !important; font-size: 12px !important; color: var(--text-faint); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-hero { padding: 150px 0 50px; }
.page-hero h1 { margin: 0; font-size: clamp(36px, 5.5vw, 64px); text-transform: uppercase; font-weight: 300; opacity: .6; line-height: 1.05; }
.page-hero h1 b { font-weight: 800; }
.page-lead { max-width: 760px; margin: 18px 0 0; font-size: 19px; font-weight: 300; color: var(--text-dim); }
.paper { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 48px; margin-bottom: 100px; box-shadow: 0 30px 60px rgba(8, 0, 30, .35); }
.paper a { color: var(--blue); }
.paper h2, .paper h3 { color: var(--ink); }
.paper p, .paper li { color: #3a3550; }
@media (max-width: 760px) { .paper { padding: 26px 20px; } .container { padding: 0 20px; } }

/* standards page */
.std-list { display: grid; gap: 22px; margin-bottom: 100px; }
.std-row { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.std-row .code { font-size: 30px; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.std-row .code small { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; letter-spacing: 2px; color: var(--text-faint); }
.std-row h3 { margin: 0 0 8px; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; }
.std-row p { margin: 0 0 12px; color: var(--text-dim); font-weight: 300; }
.std-row .checks { margin-top: 8px; }
@media (max-width: 760px) { .std-row { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- security page ---------- */
.sec-intro { max-width: 860px; margin-bottom: 40px; }
.lead-light { font-size: 19px; font-weight: 300; color: var(--text-dim); }
.lead-light b { color: var(--white); font-weight: 700; }
.arch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin: 10px 0 50px; }
.arch-col h3 { text-transform: uppercase; letter-spacing: 2px; font-size: 14px; color: var(--text-faint); margin: 0 0 14px; }
.arch-vs { font-size: 28px; font-weight: 800; color: var(--blue-2); }
.arch-note { color: var(--text-dim); font-weight: 300; font-size: 14px; margin-top: 12px; }
.db { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: rgba(0,0,0,.25); }
.db-top { padding: 8px 14px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; background: rgba(255,255,255,.06); }
.db .rows { padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.db .r { font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.r.a { background: rgba(16,185,129,.22); color: #6ee7b7; } .r.b { background: rgba(8,69,251,.28); color: #a5b4fc; } .r.c { background: rgba(245,158,11,.22); color: #fcd34d; }
.db.shared { border-color: rgba(239,68,68,.45); }
.db-set { display: grid; gap: 10px; }
.db.own.a { border-color: rgba(16,185,129,.5); } .db.own.b { border-color: rgba(99,102,241,.6); } .db.own.c { border-color: rgba(245,158,11,.5); }
.cmp { overflow-x: auto; margin-bottom: 60px; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp th { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.cmp td:first-child { color: var(--text-faint); width: 30%; }
.cmp td:nth-child(2) { color: var(--text-dim); }
.cmp td b { color: #6ee7b7; font-weight: 600; }
.sec-h { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; font-weight: 300; opacity: .7; margin: 0 0 30px; }
.sec-layers .ic { color: #6ee7b7; background: rgba(16,185,129,.15); }
.sec-cta { margin: 60px 0 20px; padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(3,27,142,.35); text-align: center; }
.sec-cta h3 { margin: 0 0 8px; font-size: 26px; text-transform: uppercase; }
.sec-cta p { color: var(--text-dim); margin: 0 0 22px; }
.sec-cta .btn { margin: 4px; }
@media (max-width: 860px) { .arch { grid-template-columns: 1fr; } .arch-vs { text-align: center; } }
