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

:root {
    --primary: #FF6B00;
    --primary-dark: #E05E00;
    --primary-light: #FF8A33;
    --dark: #1A1A2E;
    --dark-light: #16213E;
    --gray-900: #1F2937;
    --gray-800: #374151;
    --gray-700: #4B5563;
    --gray-600: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --success: #10B981;
    --danger: #EF4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header p {
    margin-top: 12px;
    font-size: 1.1rem;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    margin-bottom: 12px;
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gray-900);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem !important;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFF 50%, #F0F9FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

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

.hero-card-dot.red { background: #EF4444; }
.hero-card-dot.yellow { background: #F59E0B; }
.hero-card-dot.green { background: #10B981; }

.hero-card-title {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-left: 8px;
}

.hero-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.hero-card-item:last-child {
    border-bottom: none;
}

.hero-card-item .item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hero-card-item .item-emoji {
    font-size: 1.2rem;
}

.hero-card-item .item-price {
    font-weight: 700;
    color: var(--primary);
}

.hero-card-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--gray-900);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.step-card h3 {
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.95rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* ===== CALCULATOR / ORDER BUILDER ===== */
.calculator {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.calc-left {
    padding: 40px;
    border-right: 1px solid var(--gray-200);
}

.calc-right {
    padding: 40px;
    background: var(--gray-50);
}

.calc-left h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.calc-left > p {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.quantity-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.quantity-row .form-group:first-child {
    flex: 0 0 100px;
}

.quantity-row .form-group:last-child {
    flex: 1;
}

.btn-add {
    width: 100%;
    padding: 14px;
    justify-content: center;
    font-size: 1rem;
}

.person-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.person-input-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.person-input-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

/* Order List */
.calc-right h3 {
    margin-bottom: 4px;
    font-size: 1.3rem;
}

.calc-right > p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.order-list {
    list-style: none;
    margin-bottom: 24px;
    min-height: 100px;
}

.order-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
    font-size: 0.95rem;
}

.order-list-empty .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--gray-200);
    animation: slideIn 0.25s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.order-item .item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item .item-qty {
    background: var(--primary);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.order-item .item-name {
    font-weight: 500;
}

.order-item .item-person {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.order-item .item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item .item-price {
    font-weight: 700;
    color: var(--gray-900);
}

.order-item .item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    line-height: 1;
}

.order-item .item-remove:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.order-summary {
    border-top: 2px solid var(--gray-300);
    padding-top: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.summary-row .split-info {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.calc-actions {
    display: flex;
    gap: 10px;
}

.calc-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.btn-copy {
    background: var(--gray-900);
    color: var(--white);
}

.btn-copy:hover {
    background: var(--gray-800);
}

.btn-print {
    background: var(--white);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}

.btn-print:hover {
    border-color: var(--gray-400);
}

.btn-clear {
    background: transparent;
    color: var(--danger);
    border: 1.5px solid transparent;
    padding: 12px 16px;
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 8px;
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Split calculator */
.split-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--gray-300);
}

.split-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.split-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.split-row input {
    width: 80px;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
}

.split-row input:focus {
    outline: none;
    border-color: var(--primary);
}

.split-result {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

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

.feature-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    background: rgba(255, 107, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
}

/* ===== BETA BANNER ===== */
.beta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.beta-banner h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.beta-banner p {
    color: var(--gray-300);
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 1.05rem;
}

.beta-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 48px 0 24px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer h4 {
    color: var(--gray-200);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--gray-400);
    margin-left: 20px;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: var(--gray-100);
    padding: 32px 0;
    border-top: 1px solid var(--gray-200);
}

.disclaimer p {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.disclaimer strong {
    color: var(--gray-700);
}

/* ===== POLICY PAGES ===== */
.policy-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.policy-content {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.policy-content h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.policy-content .policy-date {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.policy-content h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.policy-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.policy-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.policy-content ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--gray-600);
}

/* ===== FAQ PAGE ===== */
.faq-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.faq-content {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: 24px 28px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
    font-weight: 400;
}

.faq-item.open .faq-question::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 28px 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gray-900);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        max-width: 480px;
    }
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px 24px;
        border-bottom: 1px solid var(--gray-200);
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-left {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .calc-actions {
        flex-direction: column;
    }
    .policy-content {
        padding: 28px 20px;
    }
}

/* ===== PRINT ===== */
@media print {
    .navbar, .hero, .steps-grid, .features-grid, .beta-banner, .footer, .disclaimer, .calc-left, .calc-actions, .btn-clear {
        display: none !important;
    }
    .calculator {
        box-shadow: none;
        border: none;
    }
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .calc-right {
        background: white;
        padding: 20px 0;
    }
    .order-item {
        border: 1px solid #ddd;
    }
    body {
        background: white;
    }
    .section {
        padding: 20px 0;
    }
}
