:root {
    --bg-color: #FAFAF8;
    --text-color: #171717;
    --text-secondary: #5C5C5C;
    --text-tertiary: #919191;
    --primary-color: #2D8A4E;
    /* Sophia Green */
    --primary-hover: #246e3e;
    --border-color: rgba(0, 0, 0, 0.08);
    --surface-color: #F1F0ED;
    --white: #FFFFFF;
    --black: #171717;
    --font-heading: 'Source Sans 3', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --glass-bg: rgba(250, 250, 248, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    /* Re-using border for glass */
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    /* Matched reference padding */
}

/* Header */
.site-header {
    padding: 0 3rem;
    height: 56px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    /* Container handles padding, but header handles it directly in this design */
}

.logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.01em;
    background: none;
    -webkit-text-fill-color: initial;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: #333;
    transform: none;
    /* Removed transform */
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-color);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 56px;
    /* Header height */
    padding-bottom: 0;
    display: flex;
    align-items: center;
    background: transparent;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 500px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: var(--surface-color);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.beta-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 1.15rem;
    color: var(--text-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 400px;
    margin-bottom: 2rem;
    margin-left: 0;
    margin-right: 0;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Hero Visual (Phone Mockup) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    /* Changed from fixed 600px */
    min-height: 720px;
    /* Ensure enough space for the phone */
    padding: 2rem 0;
}

.phone-scene {
    position: relative;
    width: 420px;
    height: 720px;
    /* Adjusted for taller phone */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating service tiles */
.float-tile {
    position: absolute;
    padding: 0.3rem 0.7rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-tertiary);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.float-tile.f1 {
    top: 2%;
    left: -4%;
    opacity: 0.55;
    animation: tileFloat 8s ease-in-out infinite;
}

.float-tile.f2 {
    top: 8%;
    right: -2%;
    opacity: 0.45;
    animation: tileFloat 10s ease-in-out 1s infinite;
}

.float-tile.f3 {
    top: 18%;
    left: -10%;
    opacity: 0.50;
    animation: tileFloat 9s ease-in-out 0.5s infinite;
}

.float-tile.f4 {
    top: 28%;
    right: -8%;
    opacity: 0.40;
    animation: tileFloat 11s ease-in-out 2s infinite;
}

.float-tile.f5 {
    top: 42%;
    left: -12%;
    opacity: 0.35;
    animation: tileFloat 10s ease-in-out 1.5s infinite;
}

.float-tile.f6 {
    top: 55%;
    right: -6%;
    opacity: 0.50;
    animation: tileFloat 8s ease-in-out 0.8s infinite;
}

.float-tile.f7 {
    top: 65%;
    left: -6%;
    opacity: 0.45;
    animation: tileFloat 9s ease-in-out 2.5s infinite;
}

.float-tile.f8 {
    top: 75%;
    right: -10%;
    opacity: 0.38;
    animation: tileFloat 11s ease-in-out 0.3s infinite;
}

.float-tile.f9 {
    top: 85%;
    left: -2%;
    opacity: 0.42;
    animation: tileFloat 10s ease-in-out 1.8s infinite;
}

.float-tile.f10 {
    top: 92%;
    right: 2%;
    opacity: 0.35;
    animation: tileFloat 9s ease-in-out 3s infinite;
}

.float-tile.f11 {
    top: 12%;
    left: 70%;
    opacity: 0.30;
    animation: tileFloat 12s ease-in-out 0.7s infinite;
}

.float-tile.f12 {
    top: 50%;
    left: 72%;
    opacity: 0.32;
    animation: tileFloat 10s ease-in-out 2.2s infinite;
}

@keyframes tileFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.phone-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 2;
}

.phone-wrapper:hover {
    transform: scale(1.015);
}

.phone-frame {
    width: 320px;
    height: 695px;
    /* ~1:2.17 ratio for 320px width */
    background: var(--white);
    border-radius: 38px;
    padding: 9px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04);
}

.phone-screen {
    background: var(--black);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    height: 100%;
    /* Ensure it fills the frame */
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.phone-status-icons {
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.phone-status-icons span {
    display: block;
    width: 2.5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.call-screen {
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    /* Take up remaining space */
    justify-content: space-between;
    /* Distribute content top/bottom */
}

.call-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, #E8E6E1, #D5D2CC);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    margin-top: 2rem;
    /* Add some space from status bar */
}

.call-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.call-status {
    font-size: 0.72rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 32px;
    margin-bottom: 1.25rem;
    width: 100%;
}

.waveform .bar {
    width: 2.5px;
    border-radius: 3px;
    background: white;
}

.transcript-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.t-line {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.t-line:last-child {
    margin-bottom: 0;
}

.t-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.t-label.ai {
    color: var(--primary-color);
}

.call-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.25rem 0 0.75rem;
}

.call-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: default;
}

.call-btn.mute {
    background: rgba(255, 255, 255, 0.1);
}

.call-btn.end {
    background: #E53935;
}

.call-btn.speaker {
    background: rgba(255, 255, 255, 0.1);
}

.call-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
}

.call-btn.end svg {
    fill: white;
    stroke: none;
}


/* Features / Panel Two */
.features-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: transparent;
}

.features-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Matched reference layout */
    gap: 4rem;
}

.features-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: left;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 380px;
    margin-bottom: 2rem;
}

.details-list {
    display: flex;
    flex-direction: column;
}

.detail-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.detail-icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    color: var(--text-color);
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.detail-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

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

/* Quotes (Right Column) */
.features-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.quote-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.quote-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0.85rem;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.quote-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.quote-meta .q-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
}

.quote-meta .q-role {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}


/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    background: var(--white);
    /* Changed from gradient */
    border: 1px solid var(--border-color);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.lead-form {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.lead-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

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

/* Footer */
.site-footer {
    padding: 2.5rem 3rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-hook {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-color);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }

    .site-header {
        padding: 0 1.5rem;
    }

    .hero-section .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 6rem 0 2rem;
        text-align: center;
        align-items: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: auto;
        min-height: auto;
        padding-bottom: 2rem;
    }

    .phone-scene {
        width: 100%;
        max-width: 320px;
        height: 620px;
        /* Fixed height container */
        min-height: 620px;
        aspect-ratio: auto;
        margin: 0 auto;
    }

    .phone-frame {
        width: 280px;
        max-width: 90vw;
        height: 608px;
        /* ~1:2.17 ratio for 280px width */
        /* Fixed phone height */
        margin: 0 auto;
    }

    .phone-screen {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .phone-wrapper:hover {
        transform: none;
        /* Disable hover effect on mobile */
    }

    .float-tile {
        display: none;
    }

    .features-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-nav {
        display: none;
    }

    .cta-content {
        padding: 3rem 1.5rem;
    }

    .lead-form {
        flex-direction: column;
    }
}