/* ============================================================
   GREATOHM — Global Styles
   Theme: White background | Turquoise accents | Black text
============================================================ */

:root {
    --turquoise: #14b8a6;
    --turquoise-dark: #0d9488;
    --turquoise-light: #5eead4;
    --turquoise-soft: #ccfbf1;
    --black: #111111;
    --gray: #555555;
    --gray-light: #f5f7f7;
    --white: #ffffff;
    --border: #e5e7eb;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 4px 14px rgba(13, 148, 136, 0.08);
    --shadow-md: 0 10px 30px rgba(13, 148, 136, 0.15);
    --shadow-lg: 0 20px 60px rgba(13, 148, 136, 0.22);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--sans);
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    color: var(--turquoise);
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* ---------- Floating stars ---------- */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars .star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--turquoise);
    border-radius: 50%;
    opacity: 0.25;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(105vh) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.35;
    }

    90% {
        opacity: 0.35;
    }

    100% {
        transform: translateY(-10vh) scale(1.1);
        opacity: 0;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--turquoise);
    color: var(--turquoise-dark);
}

.btn-outline:hover {
    background: var(--turquoise-soft);
    transform: translateY(-3px);
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.12);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: block;
    height: 44px;
}

.nav-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    position: relative;
    top: auto;
    left: auto;
    opacity: 1;
}

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

.nav-links a {
    color: var(--black);
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--turquoise);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--turquoise-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0 80px;
    background:
        radial-gradient(ellipse at 20% -10%, rgba(20, 184, 166, 0.08), transparent 60%),
        radial-gradient(ellipse at 80% 110%, rgba(20, 184, 166, 0.08), transparent 60%),
        var(--white);
    overflow: hidden;
}

.hero::before {
    content: "☸";
    position: absolute;
    top: -60px;
    right: -40px;
    font-size: 320px;
    color: rgba(20, 184, 166, 0.05);
    animation: spinSlow 90s linear infinite;
    pointer-events: none;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
}

/* Single logo */
.logo-duo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.logo-duo img {
    max-width: min(220px, 45vw);
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(13, 148, 136, 0.25));
    transition: transform 0.4s ease;
}

.logo-duo .logo-left:hover {
    transform: translateY(-6px);
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.hero-title em,
.hero-title .accent {
    color: var(--turquoise-dark);
    font-style: italic;
}

.hero-tagline {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
    position: relative;
    z-index: 1;
    padding: 110px 0;
}

.section-alt {
    background: var(--gray-light);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    color: var(--black);
    text-align: center;
    margin-bottom: 18px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--turquoise-light));
    border-radius: 4px;
    margin: 14px auto 0;
}

.section-lead {
    text-align: center;
    color: var(--gray);
    max-width: 720px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
}

/* ---------- Split (What is GreatOhm?) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 20px;
}

.split-col {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.split-col:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(20, 184, 166, 0.3);
}

.split-col h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--black);
}

.split-col p {
    color: var(--gray);
}

/* ---------- Cards (Why use it?) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(20, 184, 166, 0.35);
}

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: inline-block;
    width: 76px;
    height: 76px;
    line-height: 76px;
    background: var(--turquoise-soft);
    border-radius: 50%;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--turquoise);
    color: #fff;
    transform: scale(1.08);
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--black);
}

.card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ---------- 3D Carousel ---------- */
.carousel-stage {
    position: relative;
    perspective: 1600px;
    height: 700px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.phone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 450px;
    margin-top: -225px;
    margin-left: -110px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: filter 0.6s ease, opacity 0.6s ease;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

/* Phone frame */
.phone-frame {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(145deg, #0b0f1e, #1a2034);
    padding: 14px;
    box-shadow:
        0 30px 50px -20px rgba(0, 0, 0, 0.35),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 16px;
    background: #0b0f1e;
    border-radius: 0 0 12px 12px;
    z-index: 3;
}

.phone-screen {
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Soft shadow under each phone */
.phone-shadow {
    position: absolute;
    bottom: -42px;
    left: 10%;
    width: 80%;
    height: 36px;
    background: radial-gradient(ellipse, rgba(13, 148, 136, 0.22), transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    transition: var(--transition);
    pointer-events: none;
}

/* Active (front) phone */
.phone.active {
    z-index: 10;
}

.phone.active .phone-frame {
    box-shadow:
        0 40px 80px -20px rgba(13, 148, 136, 0.4),
        0 0 0 4px rgba(20, 184, 166, 0.35),
        inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.phone:not(.active) {
    filter: blur(2px) brightness(0.9);
    opacity: 0.55;
}

/* Carousel arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--turquoise);
    background: var(--white);
    color: var(--turquoise-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.carousel-arrow:hover {
    background: var(--turquoise);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
    left: 0;
}

.carousel-arrow.next {
    right: 0;
}

/* Caption box */
.caption-box {
    max-width: 720px;
    margin: 56px auto 0;
    text-align: center;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.caption-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--turquoise-light));
    border-radius: 4px;
}

.caption-box h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 10px;
    transition: var(--transition);
}

.caption-box p {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    transition: var(--transition);
}

.caption-box.fade h3,
.caption-box.fade p {
    opacity: 0;
    transform: translateY(8px);
}

.caption-box h3,
.caption-box p {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.caption-box .caption-fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.caption-box .caption-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Feature list (Key Features) ---------- */
.feature-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 34px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(8px);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: var(--shadow-md);
}

.feature-num {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--turquoise);
    opacity: 0.5;
    min-width: 64px;
    line-height: 1;
    padding-top: 6px;
}

.feature-body h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 6px;
}

.feature-body p {
    color: var(--gray);
    font-size: 0.97rem;
}

/* ---------- CTA / Coming Soon ---------- */
.cta-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.1), transparent 60%),
        var(--white);
}

.cta-inner {
    text-align: center;
}

.notify-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto 20px;
}

.notify-form input {
    flex: 1 1 260px;
    padding: 15px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: var(--sans);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.notify-form input:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.form-note {
    min-height: 24px;
    font-weight: 600;
    color: var(--turquoise-dark);
}

.store-badges {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px;
    border-radius: 14px;
    background: var(--black);
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--black);
}

.store-badge:hover {
    transform: translateY(-4px);
    background: var(--turquoise-dark);
    border-color: var(--turquoise-dark);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.store-icon {
    font-size: 1.8rem;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.store-text small {
    font-size: 0.72rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.store-text strong {
    font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background: var(--gray-light);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
}

.contact-info h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    margin-bottom: 18px;
    color: var(--black);
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.contact-form input,
.contact-form textarea {
    padding: 15px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: var(--sans);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.contact-form button {
    align-self: flex-start;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--black);
    color: #ddd;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-brand img.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #aaa;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #bbb;
}

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

.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Sub-pages (Privacy / Terms / About) ---------- */
.sub-page {
    padding: 160px 0 90px;
    min-height: 70vh;
}

.sub-page .page-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--black);
    margin-bottom: 30px;
    text-align: center;
}

.sub-page .page-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--turquoise-light));
    border-radius: 4px;
    margin: 14px auto 0;
}

.sub-page .page-body {
    max-width: 820px;
    margin: 0 auto;
    color: var(--gray);
}

.sub-page .page-body h2 {
    font-family: var(--serif);
    color: var(--black);
    font-size: 1.5rem;
    margin: 36px 0 10px;
}

.sub-page .page-body h3 {
    font-family: var(--serif);
    color: var(--black);
    font-size: 1.2rem;
    margin: 28px 0 8px;
}

.sub-page .page-body p,
.sub-page .page-body li {
    margin-bottom: 12px;
    color: var(--gray);
}

.sub-page .page-body ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.sub-page .page-body .updated {
    text-align: center;
    color: var(--turquoise-dark);
    font-weight: 600;
    margin-bottom: 40px;
}

.sub-page .back-home {
    text-align: center;
    margin-top: 50px;
}

.sub-page .back-home a {
    font-weight: 600;
    border-bottom: 2px solid var(--turquoise);
    padding-bottom: 2px;
}

/* ---------- Keyframe for logo pulse ---------- */
@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

.logo-duo {
    animation: logoPulse 6s ease-in-out infinite;
}

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

    .carousel-stage {
        perspective: 1200px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        right: 0;
        width: min(320px, 80vw);
        height: calc(100vh - 76px);
        flex-direction: column;
        background: var(--white);
        padding: 40px 30px;
        gap: 22px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .logo-duo {
        height: auto;
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .carousel-stage {
        height: 520px;
        perspective: 800px;
    }

    .carousel {
        width: 100%;
        height: 100%;
    }

    .phone {
        width: 180px;
        height: 380px;
        margin-top: -190px;
        margin-left: -90px;
    }

    .phone-frame {
        padding: 10px;
        border-radius: 24px;
    }

    .phone-screen {
        inset: 10px;
        border-radius: 18px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

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

    .footer-links {
        align-items: center;
    }

    .feature-item {
        padding: 22px 18px;
        gap: 16px;
    }

    .feature-num {
        min-width: 48px;
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .carousel-stage {
        height: 460px;
    }

    .carousel {
        width: 100%;
        height: 100%;
    }

    .phone {
        width: 160px;
        height: 340px;
        margin-top: -170px;
        margin-left: -80px;
    }
}