:root {
    --bg: #071425;
    --bg-soft: #0d2035;
    --surface: rgba(13, 32, 53, 0.78);
    --surface-strong: #102944;
    --text: #eaf2ff;
    --muted: #9bb3cd;
    --border: rgba(118, 154, 194, 0.28);
    --primary: #14b8c7;
    --primary-dark: #0d95a3;
    --primary-soft: rgba(20, 184, 199, 0.16);
    --secondary: #2b6cb0;
    --accent-red: #ef4444;
    --container: 1140px;
    --radius-lg: 1.25rem;
    --radius-md: 0.85rem;
    --shadow: 0 25px 50px rgba(2, 7, 18, 0.45);
    --transition: 260ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(20, 184, 199, 0.17), transparent 34%),
        radial-gradient(circle at 85% 20%, rgba(43, 108, 176, 0.22), transparent 36%),
        linear-gradient(165deg, #040d1a 0%, #071425 45%, #0a1b30 100%);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.page-offset {
    padding-top: 5.5rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    background: rgba(4, 13, 26, 0.35);
    backdrop-filter: blur(14px);
    transition: background var(--transition), border-color var(--transition);
}

.site-header.scrolled {
    background: rgba(4, 13, 26, 0.9);
    border-color: var(--border);
}

.header-inner {
    min-height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav a {
    color: var(--muted);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 10px 24px rgba(20, 184, 199, 0.35);
    transition: transform var(--transition), opacity var(--transition);
}

.header-cta:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero {
    padding: 4rem 0 4rem;
}

.hero-logo {
    padding: 2rem 0 1rem;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(20, 184, 199, 0.35));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.hero-logo-img:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

.hero-panel {
    border: 1px solid var(--border);
    border-radius: 1.8rem;
    background: linear-gradient(150deg, rgba(18, 42, 70, 0.75), rgba(10, 27, 48, 0.6));
    box-shadow: var(--shadow);
    padding: clamp(2.5rem, 5vw, 4rem);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-panel .hero-actions,
.savorly-strip .hero-actions {
    justify-content: center;
}

.savorly-strip .hero-actions {
    margin-top: 1.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #b5e9ee;
    background: var(--primary-soft);
    border: 1px solid rgba(20, 184, 199, 0.35);
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.lead {
    color: var(--muted);
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    max-width: 62ch;
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.8rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.72rem 1.05rem;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-savorly {
    color: white !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.72rem 1.05rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-savorly:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.hero-card {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: rgba(8, 20, 35, 0.8);
    padding: 1.2rem;
}

.hero-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.hero-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

main section {
    padding: 4rem 0;
}

.section-head {
    margin-bottom: 1.5rem;
}

.section-head h2 {
    font-size: clamp(1.55rem, 3.5vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.section-head p {
    color: var(--muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: linear-gradient(145deg, rgba(20, 184, 199, 0.08), rgba(13, 32, 53, 0.6));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 199, 0.1), transparent);
    transition: left 0.6s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 7, 18, 0.5);
    border-color: rgba(20, 184, 199, 0.5);
}

.card:hover::before {
    left: 100%;
}

.card:nth-child(1) {
    background: linear-gradient(145deg, rgba(20, 184, 199, 0.12), rgba(13, 32, 53, 0.7));
}

.card:nth-child(2) {
    background: linear-gradient(145deg, rgba(43, 108, 176, 0.12), rgba(13, 32, 53, 0.7));
}

.card:nth-child(3) {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(13, 32, 53, 0.7));
}

.card h3 {
    margin: 0.65rem 0 0.45rem;
    font-size: 1.1rem;
}

.card p {
    color: var(--muted);
    font-size: 0.92rem;
}

.icon-badge {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: #b8f0f5;
}

.savorly-strip {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.2rem;
    align-items: stretch;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: linear-gradient(140deg, rgba(239, 68, 68, 0.15), rgba(28, 10, 10, 0.82));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
}

.savorly-strip:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.45);
}

.savorly-badge {
    display: inline-flex;
    margin-bottom: 0.7rem;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.proof-list {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.45rem;
}

.proof-list li {
    list-style: none;
    color: #fbc4c4;
    font-size: 0.9rem;
}

.proof-list li::before {
    content: "• ";
    color: #f87171;
}

.savorly-logo {
    border: 1px solid rgba(239, 68, 68, 0.32);
    border-radius: 1rem;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

.savorly-logo img {
    width: 100%;
    max-width: 120px;
    border-radius: 0.8rem;
    object-fit: contain;
}

.contact-cta {
    border: 1px solid var(--border);
    border-radius: 1.3rem;
    background: linear-gradient(145deg, rgba(8, 21, 37, 0.9), rgba(14, 35, 59, 0.78));
    padding: clamp(2rem, 3vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer-inner {
    padding: 1.8rem 0 2.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.2rem;
}

.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
}

.field {
    margin-bottom: 0.9rem;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #dce9ff;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid var(--border);
    background: rgba(3, 13, 25, 0.6);
    color: var(--text);
    padding: 0.68rem 0.8rem;
    font-family: inherit;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 199, 0.18);
}

.alert {
    display: none;
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
}

.alert.show {
    display: block;
}

.alert-success {
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.alert-error {
    background: rgba(127, 29, 29, 0.28);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .icon-badge {
    transform: scale(1.1) rotate(5deg);
    background: rgba(20, 184, 199, 0.25);
}

@media (max-width: 960px) {
    .grid-3,
    .savorly-strip,
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-logo-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 840px) {
    .mobile-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: 5.5rem;
        right: 1rem;
        left: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid var(--border);
        background: rgba(5, 15, 28, 0.95);
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all var(--transition);
    }

    .site-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav a,
    .header-cta {
        width: 100%;
        text-align: center;
    }
}
