:root {
    --primary: #0D7377;
    --primary-dark: #095456;
    --secondary: #E8DCC8;
    --accent: #E07A3A;
    --text: #1A1A1A;
    --text-light: #666666;
    --bg: #FAFAF7;
    --white: #FFFFFF;
    --error: #D32F2F;
    --success: #2E7D32;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* Nav */
.nav {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-light); font-size: 0.9375rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #c96a2e; color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.125rem; }
.btn-full { width: 100%; }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

/* Forms */
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
@media (max-width: 480px) { .form-row { flex-direction: column; gap: 0; } }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,115,119,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8125rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 0.8125rem; color: var(--error); margin-top: 4px; }

/* Flash messages */
.flash {
    max-width: 1200px;
    margin: 16px auto;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}
.flash-error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.flash-info { background: #f0fdfa; color: var(--primary); border: 1px solid #99f6e4; }

/* Hero */
.hero {
    padding: 100px 16px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}
.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text);
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero .btn { font-size: 1.125rem; padding: 16px 40px; }

/* Sections */
.section {
    padding: 80px 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
    text-align: center;
    padding: 32px 24px;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 0.9375rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--accent); }
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pricing-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.pricing-period { font-size: 0.875rem; color: var(--text-light); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 32px; text-align: left; }
.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9375rem;
    color: var(--text-light);
}
.pricing-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    margin-right: 8px;
}

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: "+"; font-size: 1.5rem; color: var(--text-light); transition: transform 0.2s; }
.faq-question.open::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.faq-answer.open { max-height: 300px; padding-bottom: 20px; }

/* Auth pages */
.auth-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 0 16px;
}
.auth-container h1 { font-size: 1.75rem; margin-bottom: 8px; }
.auth-container p { color: var(--text-light); margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-light); }

/* Dashboard */
.dashboard { max-width: 1000px; margin: 40px auto; padding: 0 16px; }
.dashboard h1 { font-size: 1.75rem; margin-bottom: 24px; }
.trip-list { display: flex; flex-direction: column; gap: 16px; }
.trip-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.trip-card-info h3 { font-size: 1.125rem; margin-bottom: 4px; }
.trip-card-info p { font-size: 0.875rem; color: var(--text-light); }
.trip-card-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-complete { background: #f0fdf4; color: var(--success); }
.status-generating { background: #fef9c3; color: #854d0e; }
.status-pending { background: #f0f4f8; color: var(--text-light); }
.status-failed { background: #fef2f2; color: var(--error); }

/* Footer */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 48px 16px;
    margin-top: 80px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}
.footer-inner p { margin-top: 8px; font-size: 0.875rem; }
.footer-links { margin: 20px 0; display: flex; justify-content: center; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8125rem; margin-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.0625rem; }
    .hero { padding: 60px 16px 40px; }
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .section { padding: 48px 16px; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid #eee; gap: 12px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .trip-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}
