/* Overwatch by A Drone Co. — Marketing Site */

/* ============================================================
   1. RESET + CUSTOM PROPERTIES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Backgrounds */
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --bg-elevated: #353535;
    --border: #3a3a3a;
    --border-light: #444;

    /* Text */
    --text-primary: #e8e8e8;
    --text-secondary: #999;
    --text-dim: #666;

    /* Accents */
    --accent-orange: #ff6b00;
    --accent-orange-dim: rgba(255, 107, 0, 0.15);
    --accent-blue: #4a9eff;
    --accent-blue-dim: rgba(74, 158, 255, 0.12);
    --accent-green: #00c853;
    --accent-green-dim: rgba(0, 200, 83, 0.12);
    --accent-red: #ff3d3d;

    /* Fonts */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --section-pad: 120px;
    --header-height: 64px;
    --radius: 8px;
    --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff8533; }

img { max-width: 100%; display: block; }

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 700; color: var(--text-primary); }

h1 { font-size: 56px; letter-spacing: -1px; }
h2 { font-size: 40px; letter-spacing: -0.5px; }
h3 { font-size: 28px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 17px; font-weight: 600; }

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 12px;
    display: block;
}

.section-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), transparent);
    margin-top: 10px;
}

.mono { font-family: var(--font-mono); }
.dim { color: var(--text-secondary); }
.text-orange { color: var(--accent-orange); }
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }

/* ============================================================
   3. LAYOUT
   ============================================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-pad) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }

/* ============================================================
   4. NAVIGATION
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(26, 26, 26, 0.98);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.logo-accent { color: var(--accent-orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    text-decoration: none;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.btn.btn-primary { color: #fff; }
.nav-links a.btn.btn-primary:hover { color: #fff; }
.nav-links a.btn.btn-secondary { color: var(--text-primary); }
.nav-links a.btn.btn-secondary:hover { color: var(--text-primary); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent-orange);
    color: #fff;
}
.btn-primary:hover { background: #e86000; color: #fff; }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--text-secondary); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--accent-orange);
    padding: 12px 0;
}
.btn-ghost:hover { color: #ff8533; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ============================================================
   6. HERO SECTIONS
   ============================================================ */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero h1 { margin-bottom: 24px; }

.hero .lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 107, 0, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
    background-size: 100% 100%, 32px 32px;
}

.hero-sub {
    min-height: auto;
    padding: calc(var(--header-height) + 80px) 0 80px;
}

.hero-sub h1 { font-size: 44px; }

/* ============================================================
   7. CARDS
   ============================================================ */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.card-icon.orange { background: var(--accent-orange-dim); color: var(--accent-orange); }
.card-icon.blue { background: var(--accent-blue-dim); color: var(--accent-blue); }
.card-icon.green { background: var(--accent-green-dim); color: var(--accent-green); }

.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* Feature card with accent top border */
.card-accent {
    border-top: 2px solid var(--accent-orange);
}

/* ============================================================
   8. STATS ROW
   ============================================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-block .stat-number {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 600;
    color: var(--accent-orange);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-block .stat-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================================
   9. SPEC TABLE
   ============================================================ */

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border);
}

.spec-table td {
    padding: 14px 0;
    font-size: 15px;
}

.spec-table td:first-child {
    color: var(--text-secondary);
    font-size: 14px;
    width: 220px;
}

.spec-table td:last-child {
    font-family: var(--font-mono);
    font-size: 14px;
}

/* ============================================================
   10. FORMS
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-note {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 16px;
}

/* ============================================================
   11. BLOG
   ============================================================ */

.blog-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: all 0.25s;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.blog-card:hover {
    border-left-color: var(--accent-orange);
    transform: translateX(4px);
    background: var(--bg-tertiary);
}

.blog-card .blog-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
}

.blog-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.blog-card .read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
}

/* Article body */
.article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.article-header .blog-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.article-header h1 {
    font-size: 40px;
    line-height: 1.2;
}

.article-body h2 {
    font-size: 28px;
    margin: 48px 0 20px;
}

.article-body h3 {
    font-size: 22px;
    margin: 36px 0 16px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    color: var(--text-secondary);
}

.article-body li { margin-bottom: 8px; }

.article-body strong { color: var(--text-primary); font-weight: 600; }

.article-body code {
    font-family: var(--font-mono);
    font-size: 14px;
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-orange);
}

.article-body blockquote {
    border-left: 3px solid var(--accent-orange);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--accent-orange-dim);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body blockquote p {
    color: var(--text-primary);
    margin-bottom: 0;
    font-style: italic;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.article-nav a {
    font-size: 14px;
    font-weight: 500;
}

.article-cta {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}

.article-cta h3 { margin-bottom: 12px; }
.article-cta p { color: var(--text-secondary); margin-bottom: 20px; }

/* ============================================================
   12. FOOTER
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-legal {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
}

/* ============================================================
   13. ARCHITECTURE DIAGRAM (CSS)
   ============================================================ */

.arch-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    margin: 40px 0;
}

.arch-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.arch-box h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--accent-orange);
    margin-bottom: 16px;
}

.arch-box ul {
    list-style: none;
}

.arch-box li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.arch-box li:last-child { border-bottom: none; }

.arch-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 40px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
}

.arch-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   14. CTA SECTION
   ============================================================ */

.cta-section {
    text-align: center;
    padding: var(--section-pad) 0;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 18px; }

/* ============================================================
   15. TEAM CARDS
   ============================================================ */

.team-card {
    text-align: center;
    padding: 32px;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-dim);
    border: 2px solid var(--border);
}

.team-card h4 { margin-bottom: 4px; }
.team-card .role { font-size: 14px; color: var(--accent-orange); margin-bottom: 10px; }
.team-card p { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   16. SCROLL ANIMATIONS
   ============================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    :root { --section-pad: 80px; }
    h1 { font-size: 44px; }
    h2 { font-size: 32px; }
    .hero-sub h1 { font-size: 36px; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .arch-diagram { grid-template-columns: 1fr; }
    .arch-arrows { flex-direction: row; padding-top: 0; }
}

@media (max-width: 768px) {
    :root { --section-pad: 56px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    .hero { min-height: 80vh; }
    .hero .lead { font-size: 17px; }
    .hero-sub h1 { font-size: 30px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }

    .nav-links { display: none; }
    .nav-toggle { display: block; }

    ul.nav-links.open {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        min-height: calc(100vh - 64px) !important;
        background: #0d0d0d !important;
        border-top: 1px solid #3a3a3a !important;
        padding: 48px 24px 32px !important;
        gap: 12px !important;
        z-index: 9999 !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
    }

    ul.nav-links.open li {
        list-style: none;
        width: 100%;
        text-align: center;
    }

    ul.nav-links.open a {
        font-size: 20px !important;
        padding: 14px 0 !important;
        display: block !important;
        color: #e8e8e8 !important;
    }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; gap: 8px; text-align: center; }
    .article-header h1 { font-size: 30px; }
    .stat-block .stat-number { font-size: 40px; }
}

@media (max-width: 480px) {
    h1 { font-size: 30px; }
    .container { padding: 0 16px; }
    .card { padding: 24px; }
    .blog-card { padding: 20px; }
}
