/* ============================================
   AVYRA - EXECUTIVE DESIGN SYSTEM
   Formal, Corporate, Elegant
============================================ */

:root {
    /* Executive Color Palette */
    --bg-primary: #0c0c0f;
    --bg-secondary: #141419;
    --bg-tertiary: #1a1a22;
    --bg-card: rgba(255, 255, 255, 0.02);
    
    /* Accent Colors - Refined & Professional */
    --accent-gold: #c9a55c;
    --accent-gold-light: #e4c88a;
    --accent-silver: #8b8fa3;
    --accent-blue: #4a6fa5;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --text-muted: #6b6b75;
    
    /* Borders & Effects */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(201, 165, 92, 0.3);
    --glow-gold: rgba(201, 165, 92, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(201, 165, 92, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(74, 111, 165, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(12, 12, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 14px 0;
    background: rgba(12, 12, 15, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bg-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    letter-spacing: 0.02em;
    display: inline-block;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-gold);
}

.btn-cta {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-cta:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ============================================
   HERO SECTIONS
============================================ */
.hero, .hero-about {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.gradient-text, .hero-title-highlight {
    color: var(--accent-gold);
}

/* ============================================
   SECTION STYLING
============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    margin: 20px auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    margin-top: 16px;
}

.section-about {
    padding: 80px 0;
}

/* ============================================
   CONTENT LAYOUTS
============================================ */
.content-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.content-two-col h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-two-col p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.content-two-col ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-two-col li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.content-two-col li:last-child {
    border-bottom: none;
}

.content-two-col li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 500;
}

/* ============================================
   CARDS
============================================ */
.feature-card, .model-card, .pricing-card, .value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 36px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.feature-card:hover, .model-card:hover, .value-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
    transform: translateY(-4px);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 32px;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   TIMELINE
============================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gold), var(--bg-tertiary));
}

.timeline-item {
    padding-left: 40px;
    padding-bottom: 48px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent-gold);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   TEAM SECTION
============================================ */
.team-section {
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.team-member:hover {
    border-color: var(--border-hover);
}

.team-member-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.team-member p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.team-member strong {
    color: var(--accent-gold);
}

/* ============================================
   CTA SECTIONS
============================================ */
.cta-about, .cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.cta-about h2, .cta-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-about p, .cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ============================================
   LEGAL PAGES (Terms, Privacy, Cookies)
============================================ */
.terms-container, .privacy-container, .cookies-container, .legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 160px 24px 80px;
}

.terms-header, .privacy-header, .legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.terms-header h1, .privacy-header h1, .legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.terms-header p, .privacy-header p, .legal-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.last-updated {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Table of Contents */
.terms-toc, .privacy-toc {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
}

.terms-toc h3, .privacy-toc h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--accent-gold);
}

.terms-toc ul, .privacy-toc ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.terms-toc li, .privacy-toc li {
    list-style: none;
}

.terms-toc a, .privacy-toc a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.terms-toc a:hover, .privacy-toc a:hover {
    color: var(--accent-gold);
}

/* Sections */
.terms-section, .privacy-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.terms-section:last-of-type, .privacy-section:last-of-type {
    border-bottom: none;
}

.terms-section h2, .privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
}

.terms-section h3, .privacy-section h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--accent-gold);
    font-family: var(--font-primary);
    font-weight: 600;
}

.terms-section p, .privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-section ul, .privacy-section ul {
    margin: 16px 0;
    padding-left: 0;
}

.terms-section li, .privacy-section li {
    list-style: none;
    padding: 10px 0 10px 24px;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.terms-section li:last-child, .privacy-section li:last-child {
    border-bottom: none;
}

.terms-section li::before, .privacy-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.highlight-box {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-gold);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box strong {
    color: var(--accent-gold);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
    background: var(--bg-tertiary);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--bg-card);
}

/* Contact Info */
.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    margin-top: 48px;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--accent-gold);
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--accent-gold);
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col .logo {
    margin-bottom: 16px;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .content-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-menu {
        display: none;
    }

    .hero, .hero-about {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .terms-toc ul, .privacy-toc ul {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}