/* ═══════════════════════════════════════════════════════
   OpsOne — Public Website Styles
   Premium aviation-grade marketing design
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #050810;
    --bg-secondary: #0a0f1e;
    --bg-card: #111827;
    --bg-card-hover: #1a2340;
    --bg-input: #0f1729;
    --border-color: #1e2849;
    --border-glow: rgba(59,130,246,0.2);
    --text-primary: #e8eaf0;
    --text-secondary: #8b95b0;
    --text-tertiary: #5a6480;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-dark: linear-gradient(135deg, #0a0f1e, #111827);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-glow: 0 0 60px rgba(59,130,246,0.1);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-cyan); }

/* ─── Navigation ──────────────────────────────────────── */
.pub-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.pub-nav.scrolled {
    background: rgba(5,8,16,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}
.pub-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; gap: 32px;
}
.pub-nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.02em;
}
.pub-nav-brand:hover { color: var(--text-primary); }
.pub-nav-logo {
    width: 38px; height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.pub-nav-links {
    display: flex; gap: 8px; flex: 1;
}
.pub-nav-links a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    transition: var(--transition);
}
.pub-nav-links a:hover, .pub-nav-links a.active {
    color: var(--text-primary); background: rgba(255,255,255,0.05);
}
.pub-nav-actions { display: flex; gap: 10px; }

/* Buttons */
.pub-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: var(--transition); border: none; font-family: inherit;
    text-decoration: none; white-space: nowrap;
}
.pub-btn-primary {
    background: var(--gradient-primary); color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.pub-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.4);
    color: #fff;
}
.pub-btn-outline {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.pub-btn-outline:hover {
    color: var(--text-primary); border-color: var(--accent-blue);
    background: rgba(59,130,246,0.05);
}
.pub-btn-large {
    padding: 16px 36px; font-size: 16px; border-radius: var(--radius-md);
}
.pub-btn-ghost {
    background: rgba(255,255,255,0.05); color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.pub-btn-ghost:hover {
    background: rgba(255,255,255,0.1); color: #fff;
}

/* Mobile toggle */
.pub-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.pub-nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text-primary); margin: 5px 0;
    transition: var(--transition);
}

/* ─── Hero Section ────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 120px 32px 80px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(59,130,246,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(6,182,212,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139,92,246,0.06) 0%, transparent 60%);
    animation: heroGlow 20s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}
.hero-grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-inner {
    max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 20px;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
    font-size: 12px; font-weight: 600; color: var(--accent-blue);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 24px;
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: var(--accent-blue);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero h1 {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 900; line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.hero h1 .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 18px; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 40px; max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
    display: flex; gap: 40px;
}
.hero-stat { text-align: left; }
.hero-stat-value {
    font-size: 28px; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 13px; color: var(--text-tertiary); }

/* Hero Visual */
.hero-visual {
    position: relative; display: flex;
    align-items: center; justify-content: center;
}
.hero-device {
    width: 100%; max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), var(--shadow-glow);
    position: relative;
}
.hero-device::before {
    content: ''; position: absolute;
    top: -1px; left: 20%; right: 20%; height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
}
.hero-screen {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px; min-height: 320px;
}
.hero-screen-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.hero-screen-dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.hero-screen-title {
    font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.hero-screen-modules {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.hero-module {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 12px; text-align: center;
    transition: var(--transition);
}
.hero-module:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.hero-module-icon { font-size: 24px; margin-bottom: 6px; }
.hero-module-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

/* ─── Section Common ─────────────────────────────────── */
.section {
    padding: 100px 32px;
    position: relative;
}
.section-inner {
    max-width: var(--max-width); margin: 0 auto;
}
.section-header {
    text-align: center; max-width: 700px;
    margin: 0 auto 64px;
}
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent-blue);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.15; margin-bottom: 16px;
}
.section-desc {
    font-size: 17px; color: var(--text-secondary); line-height: 1.7;
}
.section-alt { background: var(--bg-secondary); }
.section-gradient {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

/* ─── Feature Cards ──────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--card-accent, var(--gradient-primary));
    opacity: 0; transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 18px; font-weight: 700;
    margin-bottom: 10px; letter-spacing: -0.01em;
}
.feature-card p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

/* ─── CTA Section ─────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 100px 32px;
    position: relative;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.1) 0%, transparent 70%);
}
.cta-inner {
    max-width: 700px; margin: 0 auto; position: relative; z-index: 1;
}
.cta-actions {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; margin-top: 32px;
}

/* ─── Modules Grid ────────────────────────────────────── */
.modules-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px; text-align: center;
    transition: var(--transition);
}
.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
}
.module-icon { font-size: 28px; margin-bottom: 10px; }
.module-name { font-size: 14px; font-weight: 600; }
.module-desc { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* ─── How It Works Steps ──────────────────────────────── */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px; counter-reset: step;
}
.step-card {
    position: relative; padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    counter-increment: step;
}
.step-card::before {
    content: counter(step);
    position: absolute; top: -16px; left: 24px;
    width: 32px; height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; margin-top: 8px; }
.step-card p { font-size: 14px; color: var(--text-secondary); }

/* ─── Security Section ────────────────────────────────── */
.security-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.security-item {
    display: flex; gap: 16px; padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.security-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.security-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.security-item p { font-size: 13px; color: var(--text-secondary); }

/* ─── Info Pages ──────────────────────────────────────── */
.info-page {
    padding: 140px 32px 80px;
}
.info-page-inner {
    max-width: 800px; margin: 0 auto;
}
.info-page h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800; letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.info-page .lead {
    font-size: 18px; color: var(--text-secondary);
    margin-bottom: 48px; line-height: 1.7;
}
.info-page h2 {
    font-size: 24px; font-weight: 700;
    margin: 48px 0 16px; letter-spacing: -0.02em;
}
.info-page h3 {
    font-size: 18px; font-weight: 600;
    margin: 32px 0 12px;
}
.info-page p {
    font-size: 15px; color: var(--text-secondary);
    margin-bottom: 16px; line-height: 1.8;
}
.info-page ul, .info-page ol {
    margin-bottom: 20px; padding-left: 24px;
}
.info-page li {
    font-size: 15px; color: var(--text-secondary);
    margin-bottom: 8px; line-height: 1.7;
}
.info-page strong { color: var(--text-primary); }

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px; margin: 24px 0;
}
.info-card h3 { margin-top: 0; }

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px; overflow: hidden;
}
.faq-question {
    padding: 20px 24px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; font-weight: 600;
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-arrow { transition: var(--transition); color: var(--text-tertiary); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px; padding: 0 24px 20px;
}
.faq-answer p { color: var(--text-secondary); font-size: 14px; }

/* Contact form */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 12px 16px;
    background: var(--bg-input); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: inherit; transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info-item {
    display: flex; gap: 16px; margin-bottom: 24px;
}
.contact-info-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.contact-info-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-info-item p { font-size: 13px; color: var(--text-secondary); }

/* ─── Footer ──────────────────────────────────────────── */
.pub-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 32px 32px;
}
.pub-footer-inner { max-width: var(--max-width); margin: 0 auto; }
.pub-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.pub-footer-brand p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.pub-footer-copy { font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }
.pub-footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; color: var(--text-primary);
    margin-bottom: 4px;
}
.pub-footer-col h4 {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-tertiary); margin-bottom: 16px;
}
.pub-footer-col a {
    display: block; font-size: 14px;
    color: var(--text-secondary); margin-bottom: 10px;
}
.pub-footer-col a:hover { color: var(--text-primary); }
.pub-footer-bottom {
    display: flex; justify-content: space-between;
    padding-top: 24px; border-top: 1px solid var(--border-color);
    font-size: 12px; color: var(--text-tertiary);
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-device { max-width: 400px; margin: 0 auto; }
    .pub-footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pub-nav-links, .pub-nav-actions {
        display: none;
    }
    .pub-nav-toggle { display: block; }
    .pub-nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5,8,16,0.95);
        backdrop-filter: blur(20px);
        padding: 16px; border-bottom: 1px solid var(--border-color);
    }
    .pub-nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .pub-nav-toggle.open span:nth-child(2) { opacity: 0; }
    .pub-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero { padding: 100px 20px 60px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .section { padding: 60px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .pub-footer-grid { grid-template-columns: 1fr; }
    .pub-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .steps-grid { grid-template-columns: 1fr; }
}

/* ─── Animations ──────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
