/* ---
AviRob Website Styles
--- */

/* 1. Root Variables & Global Styles
-------------------------------------------------- */
:root {
    --bg-dark: #0D1117;
    --bg-panel: #161B22;
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --brand-primary: #388bfd;
    --brand-hover: #58a6ff;
    --success-green: #238636;
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1120px;
    --radius-sm: 6px;
    --radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-secondary); max-width: 65ch; }
a { color: var(--brand-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-hover); }

/* 2. Header & Navigation
-------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(13, 17, 23, 0.7);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}
.brand-logo { width: 28px; height: 28px; }
.brand:hover { color: var(--text-primary); }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.main-nav a { font-size: 0.95rem; }
.nav-cta {
    background-color: var(--brand-primary);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}
.nav-cta:hover { background-color: var(--brand-hover); color: #ffffff; }

/* 3. Buttons & CTAs
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
}
.btn-primary:hover { background-color: var(--brand-hover); color: #ffffff; }

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

/* 4. Section Styling
-------------------------------------------------- */
section {
    padding: 6rem 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem auto;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-header p {
    margin-top: 1rem;
    font-size: 1.125rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 5. Component Styles
-------------------------------------------------- */
/* Hero */
.hero {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
}
.hero-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.5), var(--bg-dark));
    z-index: -1;
}
.hero-content {
    animation: fadeIn 1s ease-out;
}
.hero h1 {
    max-width: 20ch;
    margin: 0 auto;
}
.hero .subtitle {
    font-size: 1.25rem;
    max-width: 55ch;
    margin: 1.5rem auto 2.5rem auto;
    color: var(--text-secondary);
}
.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Feature Cards (Problem Section) */
.feature-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}
.feature-icon {
    display: inline-flex;
    padding: 1rem;
    background-color: rgba(56, 139, 253, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}
.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--brand-primary);
}
.feature-card h3 { margin-bottom: 0.5rem; }

/* Solution Section */
.solution-section { background-color: var(--bg-panel); }
.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.solution-card {
    background-color: var(--bg-panel);
    padding: 2.5rem 2rem;
}
.solution-card h3 { margin-bottom: 0.5rem; }

/* How It Works Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}
.step-card {
    flex: 1;
    text-align: center;
}
.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-primary);
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    margin-top: 25px;
}

/* Trust Section */
.trust-section { background-color: var(--bg-dark); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.trust-point {
    border-left: 3px solid var(--brand-primary);
    padding-left: 1.5rem;
}
.trust-point h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

/* Who We Serve Section */
.persona-card {
    background: linear-gradient(145deg, var(--bg-panel), var(--bg-dark));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}
.persona-card h3 { margin-bottom: 0.75rem; color: var(--brand-primary); }

/* Contact & Footer */
.contact-section { background-color: var(--bg-panel); text-align: center; }
.contact-content { max-width: 650px; margin: 0 auto; }
.contact-content h2 { margin-bottom: 1rem; }
.contact-content p { margin-bottom: 2rem; }

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--text-secondary); }

/* 6. Animations & Responsive
-------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    section { padding: 4rem 0; }
    .main-nav ul { display: none; } /* Simple hide for mobile, can be replaced with hamburger menu */
    .steps-container { flex-direction: column; gap: 1rem; }
    .step-connector { display: none; }
    .footer-container { flex-direction: column; gap: 1rem; }
}