:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #ccfbf1;
    --cream: #fffbf7;
    --warm-gray: #f5f3f0;
    --text: #1c1917;
    --text-soft: #57534e;
}

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

/* Floating Nav */
nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 900px;
    padding: 0.6rem 0.75rem 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-self: start;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.hero-visual {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeUp 0.7s ease-out 0.15s backwards;
}

.phone-second {
    transform: translateY(2rem);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    height: 50px;
}

.nav-cta {
    justify-self: end;
    background: var(--teal);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(13, 148, 136, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeUp 0.7s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--teal-light);
    color: var(--teal-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
}

h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

h1 .teal {
    color: var(--teal);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 420px;
    margin-bottom: 2rem;
}

/* Rotating Words */
.rotating-container {
    position: relative;
    display: inline-block;
}

.rotating-word {
    color: var(--teal);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: help;
    transition: opacity 0.4s ease;
}

.rotating-word.fade-out {
    opacity: 0;
}

.rotating-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}

.rotating-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text);
}

.rotating-container:hover .rotating-tooltip {
    opacity: 1;
    visibility: visible;
}

/* CTA Buttons */
.cta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    height: 52px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.app-store-btn img {
    height: 52px;
    border-radius: 10px;
}

.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #e8e8e8;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    height: 52px;
    transition: background 0.2s;
}

.play-store-btn:hover {
    background: #ddd;
}

.play-store-btn svg {
    width: 24px;
    height: 24px;
}

.play-store-btn .text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.play-store-btn .soon {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.play-store-btn .store {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeUp 0.7s ease-out 0.15s backwards;
}

.phone {
    width: 260px;
    height: 530px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 42px;
    padding: 10px;
    box-shadow:
        0 60px 80px -30px rgba(0,0,0,0.22),
        0 25px 35px -15px rgba(0,0,0,0.18),
        inset 0 1px 1px rgba(255,255,255,0.08);
    position: relative;
}

.phone::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen-header {
    background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
    padding: 3rem 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.screen-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.chat-area {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #fafafa;
}

.msg {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.msg.right {
    flex-direction: row-reverse;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bubble {
    max-width: 70%;
    padding: 0.6rem 0.85rem;
    border-radius: 16px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.msg.left .bubble {
    background: #fff;
    color: var(--text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.msg.right .bubble {
    background: var(--teal);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.input-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.input-field {
    flex: 1;
    background: #f5f5f5;
    border-radius: 18px;
    padding: 0.5rem 0.85rem;
    font-size: 0.7rem;
    color: #999;
}

.send-btn {
    width: 28px;
    height: 28px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* Features */
.features {
    padding: 6rem 2rem;
    background: #fff;
}

.features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.features h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--teal-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--teal-dark);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

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

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-section p {
    color: var(--text-soft);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.copyright {
    color: var(--text-soft);
    font-size: 0.85rem;
}

/* Download Modal */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.download-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-soft);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--warm-gray);
}

.modal-app {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: contain;
}

.modal-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.modal-info p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.modal-buttons .app-store-btn,
.modal-buttons .play-store-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive */
/* Responsive */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 0.5rem 0.5rem 0.5rem 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-inner {
        display: flex;
        justify-content: space-between;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .hero-visual {
        gap: 1rem;
    }
    
    .phone {
        width: 200px;
        height: 410px;
    }
    
    .phone-second {
        transform: translateY(1rem);
    }
}

@media (max-width: 600px) {
    .hero-visual {
        flex-direction: column;
        align-items: center;
    }
    
    .phone {
        width: 220px;
        height: 450px;
    }
    
    .phone-second {
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}