/* ============================================
   Redecto — Trust-first design
   Dark mode + red accent. Clean. Professional.
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-surface: #f5f5f5;
    --bg-elevated: #ebebeb;
    --text: #171717;
    --text-dim: #525252;
    --text-muted: #a3a3a3;
    --accent: #dc2626;
    --accent-soft: #fef2f2;
    --accent-glow: rgba(220, 38, 38, 0.08);
    --border: #e5e5e5;
    --green: #16a34a;
    --yellow: #ca8a04;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn-nav {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}
.btn-nav:hover { background: #b91c1c !important; }

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.btn-primary:hover { background: #b91c1c; text-decoration: none; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-secondary {
    display: inline-block;
    color: var(--text-dim);
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); text-decoration: none; color: var(--text); }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}
.hero-content { flex: 1; max-width: 500px; }
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}
.hero-sub {
    margin-top: 1.5rem;
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.7;
}
.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.hero-visual {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.hero-form {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.hero-form img {
    width: 100%;
    display: block;
    border-radius: 8px;
}
.hero-form img {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-form-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* TERMINAL */
.terminal {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.terminal-bar {
    background: #2d2d2d;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.terminal-body {
    padding: 1.25rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1.8;
    min-height: 320px;
    color: #d4d4d4;
}
.prompt { color: var(--green); }
.cmd { color: #d4d4d4; }
.cursor {
    animation: blink 1s step-end infinite;
    color: var(--text-dim);
}
@keyframes blink { 50% { opacity: 0; } }
.pii-type { color: var(--accent); font-weight: 500; }
.pii-value { color: var(--yellow); }
.success { color: var(--green); }
.dim { color: var(--text-muted); }

/* TRUST BAR */
.trust-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 2rem 2rem;
}
.trust-bar .trust-items {
    gap: 2.5rem;
}
.trust-item {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.trust-items {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}
.trust-icon { font-size: 1.1rem; }

/* SECTIONS */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* HOW IT WORKS */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.step {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
}
.step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-icon { margin-bottom: 1rem; display: flex; justify-content: center; }
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.step code {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--green);
}
.copyable { cursor: pointer; position: relative; transition: background 0.2s; }
.copyable:hover { background: var(--bg-elevated); }
.copyable:hover svg { opacity: 0.8 !important; }
.copy-toast {
    position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
    background: var(--text); color: var(--bg); font-size: 0.7rem; font-family: var(--font);
    padding: 0.2rem 0.5rem; border-radius: 4px; white-space: nowrap;
    animation: fadeout 1.5s forwards;
}
@keyframes fadeout { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* FEATURES */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}
.feature-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.feature-badge.high {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.feature-card ul {
    list-style: none;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.feature-card li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.feature-card li::before {
    content: "~";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--mono);
}
.feature-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-dim);
}

/* Document Types */
.doc-types {
    margin-top: 4rem;
    text-align: center;
}
.doc-types h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.doc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.doc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}
.doc-item.supported { border-color: rgba(34, 197, 94, 0.3); }
.doc-item.coming { opacity: 0.6; }
.doc-item span:first-of-type { flex: 1; text-align: left; color: var(--text); }
.doc-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}
.doc-status.live { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.doc-status.soon { background: rgba(82, 82, 82, 0.3); color: var(--text-muted); }

@media (max-width: 768px) {
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ARCHITECTURE */
.architecture { text-align: center; }
.arch-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}
.arch-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 160px;
}
.arch-box.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.1);
}
.arch-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.arch-box small { color: var(--text-muted); font-size: 0.75rem; }
.arch-arrow { font-size: 2rem; color: var(--text-muted); }
.arch-no-cloud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
    color: var(--text-dim);
    font-size: 1.1rem;
}
.arch-x { font-size: 1.5rem; }
.arch-note {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-top: 2rem;
    text-align: center;
}

/* PRICING */
.price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.price-card ul { flex: 1; }
.price-card .btn-primary,
.price-card .btn-secondary { margin-top: auto; }
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.1);
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}
.price-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.price-card li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.price-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green);
}

/* DOWNLOAD */
.download { text-align: center; }
.download-main { margin-top: 2rem; }
.install-cmd {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 1rem;
}
.download-main p { color: var(--text-muted); margin: 0.75rem 0; }
.download-size { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; }
.download-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 1.5rem; }

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 4rem 2rem 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-author { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }
.footer-links { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h4 { color: var(--text); font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-dim); font-size: 0.85rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { flex-direction: column; min-height: auto; padding-top: 5rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-terminal { max-width: 100%; }
    .steps { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .price-cards { grid-template-columns: 1fr; }
    .arch-diagram { flex-direction: column; }
    .nav-links { display: none; }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-links { flex-direction: column; gap: 2rem; }
    .trust-items { gap: 1.5rem; }
}
