:root {
    --ink: #123c3d;
    --ink-deep: #09292a;
    --paper: #f3eee3;
    --paper-light: #fffaf1;
    --coral: #ff6542;
    --mint: #73d6bd;
    --line: rgba(18, 60, 61, .18);
    --shadow: 0 28px 70px rgba(12, 48, 49, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 18%, rgba(115, 214, 189, .28), transparent 28rem),
        radial-gradient(circle at 92% 52%, rgba(255, 101, 66, .18), transparent 24rem),
        var(--paper);
    font-family: "DM Sans", sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.grain {
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: .13;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

.site-header {
    width: min(1460px, calc(100% - 64px));
    height: 104px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    letter-spacing: -.4px;
}
.brand img { width: 43px; height: 43px; }
.brand strong { font-weight: 700; }
.brand span { font-weight: 500; }

.service-state {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}
.service-state span, .live-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 6px rgba(255, 101, 66, .14);
}

main { width: min(1460px, calc(100% - 64px)); margin: auto; }
.hero {
    min-height: 690px;
    display: grid;
    grid-template-columns: .93fr 1.1fr .78fr;
    align-items: center;
    gap: clamp(26px, 3vw, 60px);
    padding: 70px 0 54px;
}

.eyebrow {
    margin: 0 0 20px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
}
.hero-copy h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(52px, 5vw, 84px);
    line-height: .93;
    letter-spacing: -.065em;
    font-weight: 650;
}
.hero-copy h1 em {
    color: var(--coral);
    font-family: Georgia, serif;
    font-weight: 400;
}
.hero-lead {
    max-width: 480px;
    margin: 30px 0 34px;
    color: rgba(18, 60, 61, .73);
    font-size: 17px;
    line-height: 1.65;
}
.trust-row { display: flex; gap: 26px; }
.trust-row div { display: grid; gap: 2px; }
.trust-row strong { font: 700 18px "Space Grotesk", sans-serif; }
.trust-row span { color: rgba(18, 60, 61, .62); font-size: 11px; }

.meeting-scene {
    position: relative;
    height: 555px;
    isolation: isolate;
}
.meeting-scene::before {
    content: "";
    position: absolute;
    inset: 62px 28px 40px 22px;
    z-index: -2;
    border-radius: 52% 48% 46% 54% / 42% 36% 64% 58%;
    background: var(--ink);
    transform: rotate(-4deg);
}
.orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(243, 238, 227, .22);
    border-radius: 50%;
}
.orbit-one { inset: 98px 80px 100px 40px; transform: rotate(16deg); }
.orbit-two { inset: 130px 15px 72px 110px; transform: rotate(-22deg); }
.video-card {
    position: absolute;
    overflow: hidden;
    border: 5px solid var(--paper-light);
    border-radius: 26px;
    box-shadow: var(--shadow);
    background: #d9e5de;
}
.card-main { width: 67%; height: 52%; left: 2%; top: 7%; transform: rotate(-3deg); }
.card-side { width: 52%; height: 42%; right: 2%; bottom: 6%; transform: rotate(4deg); }
.portrait { width: 100%; height: 100%; display: grid; place-items: center; }
.portrait span {
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border-radius: 50%;
    color: var(--paper-light);
    font: 600 26px "Space Grotesk", sans-serif;
}
.portrait-one { background: linear-gradient(145deg, #9fdacb, #327a72); }
.portrait-one span { background: rgba(18, 60, 61, .68); }
.portrait-two { background: linear-gradient(145deg, #ffc0a9, #ff7654); }
.portrait-two span { background: rgba(109, 41, 27, .52); }
.name-tag {
    position: absolute;
    left: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: white;
    background: rgba(9, 41, 42, .72);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 12px;
}
.name-tag i { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }
.live-pill {
    position: absolute;
    top: 2%;
    right: 9%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 99px;
    background: var(--paper-light);
    box-shadow: 0 12px 30px rgba(18, 60, 61, .12);
    font: 700 11px "Space Grotesk", sans-serif;
}
.control-dock {
    position: absolute;
    left: 25%;
    bottom: 1%;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
    background: var(--paper-light);
    box-shadow: var(--shadow);
}
.control { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; }
.control::after { content: ""; position: absolute; inset: 11px; border: 2px solid white; border-radius: 4px; }
.control.share { background: var(--coral); }
.control.share::after { border-radius: 50%; }
.signal-card {
    position: absolute;
    left: -2%;
    top: 59%;
    display: flex;
    align-items: end;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--paper-light);
    box-shadow: var(--shadow);
    font-size: 10px;
    font-weight: 700;
}
.signal-card span { margin-right: 5px; }
.signal-card i { width: 3px; background: var(--mint); border-radius: 3px; }
.signal-card i:nth-child(2) { height: 7px; }
.signal-card i:nth-child(3) { height: 11px; }
.signal-card i:nth-child(4) { height: 15px; }
.signal-card i:nth-child(5) { height: 20px; }

.action-panel {
    padding: 28px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 28px;
    background: rgba(255, 250, 241, .76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.panel-top { margin-bottom: 26px; }
.step-label { display: block; margin-bottom: 14px; color: rgba(18,60,61,.55); font: 700 10px "Space Grotesk", sans-serif; letter-spacing: .18em; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: rgba(18, 60, 61, .08); }
.tab { padding: 10px; border: 0; border-radius: 10px; color: rgba(18,60,61,.58); background: transparent; cursor: pointer; font-weight: 700; }
.tab.active { color: var(--ink); background: var(--paper-light); box-shadow: 0 5px 18px rgba(18,60,61,.1); }
.meeting-form { display: grid; gap: 17px; }
.tab-pane { display: none; }
.tab-pane.active { display: grid; }
.meeting-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.meeting-form input {
    width: 100%;
    padding: 14px 15px;
    outline: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255,255,255,.62);
    transition: border-color .2s, box-shadow .2s;
}
.meeting-form input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(115,214,189,.2); }
.room-code-input { text-transform: uppercase; letter-spacing: .11em; font-family: "Space Grotesk", sans-serif; }
.primary-button {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 9px 8px 19px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: var(--ink);
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(18,60,61,.19);
    transition: transform .2s, background .2s;
}
.primary-button:hover { transform: translateY(-2px); background: var(--ink-deep); }
.primary-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.primary-button b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--mint); font-size: 18px; }
.primary-button.loading span::after { content: "..."; animation: dots 1s infinite; }
.form-note { margin: -3px 0 0; color: rgba(18,60,61,.54); font-size: 11px; line-height: 1.5; }
.alert { margin: -8px 0 18px; padding: 11px 13px; border-left: 3px solid var(--coral); border-radius: 8px; background: rgba(255,101,66,.1); font-size: 12px; line-height: 1.5; }

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.feature-strip article { display: flex; gap: 20px; padding: 34px clamp(20px, 3vw, 44px); }
.feature-strip article + article { border-left: 1px solid var(--line); }
.feature-strip article > span { color: var(--coral); font: 700 12px "Space Grotesk", sans-serif; }
.feature-strip h2 { margin: 0 0 8px; font: 600 16px "Space Grotesk", sans-serif; }
.feature-strip p { margin: 0; color: rgba(18,60,61,.62); font-size: 12px; line-height: 1.6; }

footer { width: min(1460px, calc(100% - 64px)); margin: auto; padding: 32px 0 46px; display: flex; justify-content: space-between; color: rgba(18,60,61,.56); font-size: 12px; }
footer p { margin: 0; font-family: Georgia, serif; font-style: italic; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(9,41,42,.72); backdrop-filter: blur(12px); }
.success-modal { width: min(430px, 100%); padding: 36px; text-align: center; border-radius: 28px; background: var(--paper-light); box-shadow: 0 40px 100px rgba(0,0,0,.3); animation: modal-in .45s both; }
.success-modal .eyebrow { margin: 14px 0 7px; color: var(--coral); }
.success-modal h2 { margin: 0 0 12px; font: 700 27px "Space Grotesk", sans-serif; }
.success-modal > p:not(.eyebrow) { color: rgba(18,60,61,.6); font-size: 13px; }
.success-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: auto; border-radius: 50%; color: var(--ink); background: var(--mint); font-weight: 800; }
.room-code-copy { width: 100%; display: grid; gap: 5px; margin: 20px 0; padding: 18px; border: 1px dashed rgba(18,60,61,.4); border-radius: 16px; color: var(--ink); background: rgba(115,214,189,.12); cursor: pointer; }
.room-code-copy strong { font: 700 28px "Space Grotesk", sans-serif; letter-spacing: .1em; }
.room-code-copy span { font-size: 11px; }
.success-modal form { margin-bottom: 16px; }
.success-modal > a { color: rgba(18,60,61,.58); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(20px); animation: reveal .7s forwards; }
.meeting-scene { animation-delay: .12s; }
.action-panel { animation-delay: .22s; }
.feature-strip { animation-delay: .32s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes dots { 50% { opacity: .35; } }

@media (max-width: 1180px) {
    .hero { grid-template-columns: 1fr 1fr; }
    .action-panel { grid-column: 1 / -1; width: min(560px, 100%); margin: 0 auto; }
}

@media (max-width: 760px) {
    .site-header, main, footer { width: min(100% - 32px, 620px); }
    .site-header { height: 82px; }
    .service-state { font-size: 0; }
    .hero { display: flex; flex-direction: column; align-items: stretch; padding: 48px 0 38px; }
    .action-panel { order: 2; }
    .meeting-scene { order: 3; }
    .hero-copy h1 { font-size: clamp(48px, 15vw, 68px); }
    .hero-lead { font-size: 15px; }
    .trust-row { justify-content: space-between; gap: 10px; }
    .meeting-scene { width: min(520px, 100%); height: 430px; margin: 0 auto; }
    .meeting-scene::before { inset: 45px 16px 32px; }
    .card-main { width: 71%; height: 50%; }
    .card-side { width: 56%; height: 41%; }
    .signal-card { left: 0; }
    .action-panel { padding: 22px; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature-strip article + article { border-left: 0; border-top: 1px solid var(--line); }
    footer { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
