/* ===== CSS Variables ===== */
:root {
    /* Colors matching the app */
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1321;
    --bg-card: #151c2c;
    --bg-card-hover: #1a2235;
    --bg-input: #1a2235;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;
    --card-radius: 16px;
    --btn-radius: 12px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--bg-secondary);
    border-radius: 40px;
    padding: 12px;
    border: 2px solid var(--border-color-light);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(59, 130, 246, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    padding: 20px 16px;
}

.app-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.app-icon-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-blue);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.app-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.trip-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.trip-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.trip-total .label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.trip-total .amount {
    font-size: 1.75rem;
    font-weight: 700;
}

.families-section, .settlements-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.manage-btn {
    color: var(--accent-blue);
    font-weight: 500;
}

.family-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.family-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.family-dot.blue { background: var(--accent-blue); }
.family-dot.red { background: var(--accent-red); }
.family-dot.green { background: var(--accent-green); }

.family-name {
    flex: 1;
    font-size: 0.8rem;
}

.family-amount {
    font-size: 0.8rem;
    font-weight: 600;
}

.settlement-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.settlement-from, .settlement-to {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}

.settlement-amount {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 80px;
    right: -40px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 120px;
    left: -60px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-weight: 600;
}

.floating-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.floating-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.floating-content {
    display: flex;
    flex-direction: column;
}

.floating-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.floating-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.15), transparent 60%);
    pointer-events: none;
}

/* ===== Section Styles ===== */
.section-header-centered {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.section-header-centered h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.section-header-centered p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== Features Section ===== */
.features {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.feature-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.feature-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: var(--section-padding) 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 60px 1fr 280px;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--accent-blue);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.step-visual {
    display: flex;
    justify-content: flex-end;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
    margin-left: 25px;
}

/* Mini Cards in Steps */
.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    width: 220px;
}

.mini-card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.trip-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.trip-badge.active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.mini-trip-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-trip-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.receipts-count {
    color: var(--text-secondary);
}

/* Scan Card */
.scan-card {
    position: relative;
    overflow: hidden;
}

.scan-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.receipt-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 4px 0;
}

.receipt-item.total {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 600;
}

.item-price {
    color: var(--accent-green);
}

/* Settlement Preview */
.settlement-preview {
    width: auto;
    min-width: 260px;
}

.settlement-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.settlement-person {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--accent-red); }
.dot.green { background: var(--accent-green); }

.arrow {
    color: var(--text-muted);
}

.settlement-amt {
    color: var(--accent-green);
    font-weight: 600;
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.screenshots-carousel {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.screenshot-item.featured .screenshot-frame {
    transform: none;
}

.screenshot-frame {
    width: 220px;
    height: 440px;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 8px;
    border: 2px solid var(--border-color-light);
    position: relative;
    transition: all var(--transition-normal);
}

.screenshot-frame:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.screenshot-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 20px;
    z-index: 10;
}

.screenshot-content {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 26px;
    padding: 48px 12px 16px;
    overflow: hidden;
}

.screenshot-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Screen Content Styles */
.screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.header-icon {
    font-size: 1rem;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.back-arrow {
    font-size: 1.25rem;
    color: var(--accent-blue);
}

.screen-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Tip Split Screen */
.toggle-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 12px;
}

.tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 0.65rem;
    border-radius: 6px;
    color: var(--text-secondary);
}

.tab.active {
    background: var(--accent-blue);
    color: white;
}

.input-section, .tip-section, .split-section {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.input-section label, .tip-section label, .split-section label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.amount-input {
    font-size: 1rem;
    color: var(--text-muted);
}

.tip-buttons {
    display: flex;
    gap: 3px;
    flex-wrap: nowrap;
}

.tip-btn {
    padding: 5px 6px;
    background: var(--bg-input);
    border-radius: 5px;
    font-size: 0.55rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.tip-btn.active {
    background: var(--accent-blue);
    color: white;
}

.split-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    border-radius: 6px;
    font-size: 1rem;
}

.split-count {
    font-size: 0.8rem;
}

/* Trips Screen */
.trip-card-preview {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.trip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.trip-title {
    font-size: 1rem;
    font-weight: 700;
}

.status-badge {
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border-radius: 12px;
    font-size: 0.55rem;
}

.trip-date-small {
    font-size: 0.6rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.trip-stats {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label-small {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.stat-value-large {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-green);
}

.fab-button {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Details Screen */
.trip-hero {
    margin-bottom: 12px;
}

.trip-name-large {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.trip-date-detail {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.total-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.total-label {
    display: block;
    font-size: 0.6rem;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.families-list {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px;
}

.families-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.manage-link {
    color: var(--accent-blue);
}

.family-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.family-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.family-indicator.blue { background: var(--accent-blue); }
.family-indicator.red { background: var(--accent-red); }
.family-indicator.green { background: var(--accent-green); }

.family-name-text {
    flex: 1;
    font-size: 0.7rem;
}

.family-total {
    font-size: 0.7rem;
    font-weight: 600;
}

/* History Screen */
.history-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.history-title {
    font-size: 0.75rem;
    font-weight: 600;
}

.delete-icon {
    font-size: 0.6rem;
    color: var(--accent-red);
}

.history-date {
    font-size: 0.5rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.history-amount-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
}

.amount-label {
    font-size: 0.5rem;
    color: var(--text-muted);
}

.history-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
}

.history-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tip-info {
    font-size: 0.5rem;
    color: var(--accent-green);
}

.people-info {
    font-size: 0.5rem;
    color: var(--accent-blue);
}

/* Settings Screen */
.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.profile-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.setting-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.setting-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.setting-value {
    font-size: 0.8rem;
}

.setting-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.chevron {
    color: var(--text-muted);
}

.templates-section {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px;
}

.templates-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.add-btn {
    padding: 3px 10px;
    background: var(--accent-purple);
    border-radius: 12px;
    font-size: 0.6rem;
}

.template-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border-radius: 8px;
    padding: 8px;
}

.template-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.template-dot.orange { background: var(--accent-orange); }

.template-name {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
}

.template-count {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* ===== New Tip Split Elements ===== */
.tip-custom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.custom-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.tip-calculated {
    font-size: 0.65rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.summary-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
}

.summary-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.summary-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* ===== New Settlement Elements with Avatars ===== */
.settlements-section-new {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
}

.settlements-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.settlements-icon {
    font-size: 0.8rem;
}

.settlements-title {
    display: flex;
    flex-direction: column;
}

.settlements-title span:first-child {
    font-size: 0.75rem;
    font-weight: 600;
}

.settlements-subtitle {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.settlement-card-new {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
}

.avatar-circle.blue { background: var(--accent-blue); }
.avatar-circle.red { background: var(--accent-red); }
.avatar-circle.green { background: var(--accent-green); }

.settlement-info {
    display: flex;
    flex-direction: column;
    min-width: 40px;
}

.payer-name {
    font-size: 0.6rem;
    font-weight: 500;
}

.payer-action {
    font-size: 0.5rem;
    color: var(--text-muted);
}

.settlement-amount-new {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-green);
    flex: 1;
    text-align: center;
}

.settlement-arrow {
    color: var(--accent-green);
    font-size: 0.7rem;
}

.minimized-text {
    display: block;
    text-align: center;
    font-size: 0.55rem;
    color: var(--accent-blue);
}

/* ===== Hero Phone Settlement Styles ===== */
.section-header-hero {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.sparkle-icon {
    font-size: 0.7rem;
}

.section-header-hero > div {
    display: flex;
    flex-direction: column;
}

.section-header-hero span:first-of-type {
    font-size: 0.7rem;
    font-weight: 600;
}

.section-header-hero .subtitle {
    font-size: 0.5rem;
    color: var(--text-muted);
}

.settlement-card-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 8px;
}

.avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 600;
    color: white;
}

.avatar-sm.blue { background: var(--accent-blue); }
.avatar-sm.green { background: var(--accent-green); }

.settlement-amount-hero {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-green);
}

.arrow-hero {
    color: var(--accent-green);
    font-size: 0.6rem;
}

/* ===== Use Cases Section ===== */
.use-cases {
    padding: var(--section-padding) 0;
}

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

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.use-case-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.use-case-emoji {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.use-case-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.use-case-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Download Section ===== */
.download {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.download-feature svg {
    color: var(--accent-green);
}

.app-store-badge img {
    height: 54px;
    transition: transform var(--transition-fast);
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.download-visual {
    display: flex;
    justify-content: center;
}

.download-phone {
    position: relative;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    filter: blur(40px);
}

.phone-frame-large {
    width: 200px;
    height: 400px;
    background: var(--bg-card);
    border-radius: 36px;
    padding: 8px;
    border: 2px solid var(--border-color-light);
    position: relative;
    z-index: 2;
}

.phone-screen-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.app-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 140px 0 80px;
    min-height: calc(100vh - 200px);
}

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-content {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.legal-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.legal-section strong {
    color: var(--text-primary);
}

.contact-email {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 500;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .screenshots-carousel {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
        flex-wrap: nowrap;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .floating-card.card-1 {
        right: 20px;
    }

    .floating-card.card-2 {
        left: 20px;
    }

    .step {
        grid-template-columns: 52px 1fr;
    }

    .step-visual {
        display: none;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-features {
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .section-header-centered h2 {
        font-size: 2rem;
        white-space: normal;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .floating-card {
        display: none;
    }

    .screenshot-frame {
        width: 180px;
        height: 360px;
    }
}
