/* ============================================
   GastroTech — Landing Page
   Visual refinado: glass, glows, animações
   ============================================ */

/* CSS Variables & Reset */
:root {
    --primary-color: #FF6B00;
    --primary-light: #FF9E00;
    --primary-hover: #E65A00;
    --bg-dark: #0b0d11;
    --bg-dark-2: #0f1115;
    --bg-card: #15181f;
    --bg-card-hover: #1b1f27;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --border-color: #23262e;
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF9E00 100%);
    --gradient-text: linear-gradient(100deg, #FF8A2B 0%, #FFC164 100%);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px -8px rgba(255, 107, 0, 0.35);
    --font-main: 'Inter', sans-serif;
    --radius-lg: 20px;
    --radius-md: 10px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Textura/glow de fundo global */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 60% 50% at 15% 0%, rgba(255, 107, 0, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 50% at 90% 10%, rgba(255, 158, 0, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255, 107, 0, 0.06), transparent 60%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 80%);
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Utility */
h1, h2, h3 {
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    position: relative;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 50%);
    opacity: 0;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
    background: rgba(255, 107, 0, 0.06);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 13, 17, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    padding: 18px 0;
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(11, 13, 17, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        0 6px 16px -4px rgba(255, 107, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.logo-mark svg {
    display: block;
}

.logo-text span {
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 34px;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 90px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 107, 0, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 92%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero mockup (phone desenhado em CSS) */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.25), transparent 60%);
    filter: blur(40px);
    z-index: 0;
}

.phone {
    position: relative;
    z-index: 1;
    width: 300px;
    max-width: 80%;
    aspect-ratio: 9 / 18.5;
    background: linear-gradient(160deg, #1c1f27, #0e1014);
    border-radius: 42px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        var(--shadow-glow);
    animation: float 5s ease-in-out infinite;
}

.phone::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #0b0d11;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #15181f 0%, #0e1014 100%);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-topbar {
    padding: 38px 18px 18px;
    background: var(--gradient-primary);
    color: #fff;
    position: relative;
    border-radius: 0 0 20px 20px;
}

.phone-topbar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.25), transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.store-row {
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    z-index: 1;
}

.store-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.phone-topbar .store {
    font-weight: 800;
    font-size: 1.05rem;
    display: block;
    line-height: 1.2;
}

.phone-topbar .sub {
    font-size: 0.72rem;
    opacity: 0.9;
    display: block;
}

.phone-body {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.menu-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 10px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.menu-item:first-of-type {
    border-color: rgba(255, 107, 0, 0.4);
    background: rgba(255, 107, 0, 0.08);
}

.menu-item .thumb {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 158, 0, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.menu-item:nth-of-type(3) .thumb { background: linear-gradient(135deg, rgba(255, 94, 98, 0.25), rgba(255, 153, 102, 0.12)); }
.menu-item:nth-of-type(4) .thumb { background: linear-gradient(135deg, rgba(247, 151, 30, 0.25), rgba(255, 210, 0, 0.12)); }

.menu-item .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item .name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.menu-item .price {
    font-size: 0.76rem;
    color: var(--primary-light);
    font-weight: 700;
}

.menu-item .add {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px -2px rgba(255, 107, 0, 0.6);
}

.order-summary {
    margin-top: auto;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.summary-row.muted {
    color: var(--text-muted);
    font-weight: 500;
}

.summary-row .free {
    color: #22c55e;
    font-weight: 700;
}

.phone-cta {
    margin: 14px 14px 16px;
    padding: 13px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 24px -6px rgba(255, 107, 0, 0.6);
}

.phone-cta .cta-total {
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 10px;
    border-radius: 8px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* Sections General */
.section {
    padding: 110px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.feature-card {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-dark-2));
    border: 1px solid var(--border-color);
    padding: 38px 32px;
    border-radius: var(--radius-lg);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 107, 0, 0.1), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 24px 50px -20px rgba(255, 107, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 180, 100, 0.5);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 24px -6px rgba(255, 107, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -6px 14px rgba(180, 60, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Brilho que atravessa a caixa no hover */
.icon-box::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -120%;
    width: 60%;
    height: 220%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(18deg);
    transition: left 0.6s ease;
}

.icon-box i,
.icon-box svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.4;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(120, 40, 0, 0.4));
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 16px 34px -6px rgba(255, 107, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -6px 14px rgba(180, 60, 0, 0.35);
}

.feature-card:hover .icon-box::after {
    left: 130%;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.97rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.advantage-item {
    padding: 34px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 0, 0.4);
}

.advantage-item h3 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.2rem;
}

.advantage-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.advantages-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.advantages-cta .btn {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* Testimonials */
.testimonials {
    background:
        linear-gradient(180deg, transparent, rgba(255, 107, 0, 0.03), transparent),
        #0d0f13;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-dark-2));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 0, 0.4);
}

.testimonial-card .stars {
    color: #FFB020;
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.testimonial-card .quote {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.65;
    flex: 1;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.testimonial-card .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px -2px rgba(255, 107, 0, 0.5);
}

.testimonial-card .author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-card .author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-card .author-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 44px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary-color);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding-top: 130px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-container {
        gap: 50px;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-image {
        order: -1;
        margin: 0 auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78%, 320px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        background: rgba(11, 13, 17, 0.97);
        backdrop-filter: blur(16px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1000;
    }

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

    .nav a {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .logo {
        z-index: 1001;
    }

    .header .btn-primary {
        display: none;
    }

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

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 32px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .phone { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
