/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container-max: 1200px;
    --container-pad: 20px;
    --navbar-height: 80px;
    --hero-pad-top: 0px;
    --hero-pad-bottom: 0px;
}

html {
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #0F172A;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0B2545;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    height: var(--navbar-height);
    padding: 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 0;
}

/* Navbar brand: icon + text */
.nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #E5E7EB;
    font-weight: 500;
    transition: color 0.2s ease, border-color 0.2s ease;
    position: relative;
    font-size: 0.95rem; /* down from 1rem+ */
}

.nav-menu .nav-link {
    color: #FFFFFF;
    font-weight: 500;
}

.nav-menu .nav-link:hover {
    color: #2DD4BF;
}

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
}

/* Dropdown Menu Styles */
.nav-item.has-dropdown {
    position: relative;
}

/* Dropdown toggle indicator */
.dropdown-toggle::after {
    content: " ▾";
    font-size: 0.85em;
    margin-left: 0.25rem;
}

/* Base dropdown hidden state */
.nav-item.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0B2545;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    list-style: none;
    z-index: 1001;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;

    transition: opacity 0.3s ease,
                visibility 0.3s ease,
                transform 0.3s ease;
}

/* Dropdown items */
.nav-item.has-dropdown .dropdown-menu li {
    margin: 0;
    padding: 0;
}

/* Dropdown link styling - force site theme */
.nav-item.has-dropdown .dropdown-menu a.dropdown-link,
.nav-item.has-dropdown .dropdown-menu a.dropdown-link:visited,
.nav-item.has-dropdown .dropdown-menu a.dropdown-link:active,
.nav-item.has-dropdown .dropdown-menu a.dropdown-link:focus {
    display: block;
    padding: 10px 14px;
    color: #E5E7EB !important;
    text-decoration: none !important;
    font-weight: 500;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item.has-dropdown .dropdown-menu a.dropdown-link:hover,
.nav-item.has-dropdown .dropdown-menu a.dropdown-link:focus {
    background-color: rgba(45, 212, 191, 0.14) !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Desktop dropdown behavior - hover and focus-within */
@media (min-width: 769px) {
    /* Show dropdown on hover or keyboard focus */
    .nav-item.has-dropdown:hover .dropdown-menu,
    .nav-item.has-dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Invisible hover bridge to prevent flicker */
    .nav-item.has-dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        height: 12px;
        z-index: 1000;
    }
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--navbar-height));
    padding-top: var(--hero-pad-top);
    padding-bottom: var(--hero-pad-bottom);
    display: flex;
    align-items: center;
  }

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #0B2545;
}

.highlight {
    color: #2DD4BF;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #475569;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-location-note {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #64748B;
  }

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
    min-height: 56px;
    padding: 0 1.75rem;
}

.btn-primary {
    background-color: #2DD4BF;
    color: #0B2545;
    border: none;
}

.btn-primary:hover {
    background-color: #14B8A6;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #0B2545;
    border: 1px solid #38BDF8;
}

.btn-secondary:hover {
    background-color: #38BDF8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* AI Visualization */
.ai-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    position: relative;
}

.neural-network {
    position: relative;
    width: 300px;
    height: 300px;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #2DD4BF;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.node:nth-child(1) { top: 50px; left: 50px; animation-delay: 0s; }
.node:nth-child(2) { top: 50px; right: 50px; animation-delay: 0.3s; }
.node:nth-child(3) { top: 150px; left: 20px; animation-delay: 0.6s; }
.node:nth-child(4) { top: 150px; right: 20px; animation-delay: 0.9s; }
.node:nth-child(5) { bottom: 50px; left: 80px; animation-delay: 1.2s; }
.node:nth-child(6) { bottom: 50px; right: 80px; animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: #F9FAFB;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0B2545;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

/* Beta Badge */
.beta-badge {
    display: inline-block;
    background-color: rgba(56, 189, 248, 0.12);
    color: #0B2545;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: #38BDF8;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Ensure everything inside the card also ignores default link styling */
.service-card-link *,
.service-card-link:visited *,
.service-card-link:active * {
    text-decoration: none;
    color: inherit;
}

.service-card-link .service-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card-link .service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: #38BDF8;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-card h3 .local-badge {
    vertical-align: middle;
}

.service-card p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.service-details li {
    color: #475569;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #38BDF8;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-card-local {
    border-color: #2DD4BF;
}

.local-badge {
    background-color: rgba(45, 212, 191, 0.12);
    color: #0B2545;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.35rem;
}

.service-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    color: #475569;
    font-style: italic;
}

.service-note small {
    font-size: 0.875rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0B2545;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2DD4BF;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #475569;
    font-weight: 500;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}


.tech-item {
    background: #F9FAFB;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #2DD4BF;
    color: #0B2545;
    transform: translateY(-2px);
}

/* Restaurant Analytics Section */
.restaurant-analytics {
    padding: 6rem 0;
    background-color: #F9FAFB;
    position: relative;
}

.restaurant-analytics .container {
    position: relative;
    z-index: 1;
}

.analytics-content {
    max-width: 1000px;
    margin: 0 auto;
}

.analytics-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.analytics-intro h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 1.5rem;
}

.analytics-intro p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Beta Highlight Box */
.beta-highlight {
    background: white;
    border: 2px solid #38BDF8;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

.beta-highlight h4 {
    color: #0B2545;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.beta-highlight p {
    color: #475569;
    margin-bottom: 1rem;
}

.beta-highlight ul {
    list-style: none;
    padding: 0;
}

.beta-highlight li {
    color: #475569;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.beta-highlight li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2DD4BF;
    font-weight: bold;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: #38BDF8;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #38BDF8;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.6;
}

.analytics-benefits {
    margin-bottom: 4rem;
}

.analytics-benefits h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #0B2545;
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #2DD4BF;
}

.benefit-item i {
    color: #2DD4BF;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.analytics-cta {
    text-align: center;
    background: #F9FAFB;
    color: #0F172A;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.analytics-cta h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 1rem;
}

.analytics-cta p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
}

.analytics-cta .btn {
    background-color: #2DD4BF;
    color: #0B2545;
    padding: 1rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
    border: none;
}

.analytics-cta .btn:hover {
    background-color: #14B8A6;
    transform: translateY(-1px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #38BDF8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #475569;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38BDF8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #0B2545;
    color: #E5E7EB;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: #E5E7EB;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #E5E7EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2DD4BF;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(148, 163, 184, 0.2);
    color: #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2DD4BF;
    color: #0B2545;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 1rem;
    text-align: center;
    color: #E5E7EB;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --navbar-height: 72px;
    --container-pad: 16px;
    --section-pad-y: 3.5rem;
    --hero-pad-top: 4.25rem;
    --hero-pad-bottom: 3rem;
  }

  /* Hamburger button */
  .hamburger {
    display: flex;
    width: 42px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    padding: 0;
  }

  .hamburger .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
  }

  /* Mobile nav menu */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B2545;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    margin: 0;
  }

  .nav-link {
    width: 100%;
    padding: 12px;
    display: block;
  }

  /* Mobile dropdown */
  .nav-item.has-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 12px;
    margin-top: 6px;
    background-color: rgba(255, 255, 255, 0.05);

    display: none;

    /* override desktop hidden technique */
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-item.has-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-item.has-dropdown .dropdown-menu .dropdown-link {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    font-size: 0.9rem;
  }

  /* Hero stacking on mobile */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    justify-content: center;
  }

  .services-grid,
  .feature-grid,
  .tech-stack,
  .benefits-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: Hide brand text on small screens */
@media (max-width: 640px) {
    .nav-logo-text {
        display: none;
    }
}

/* Subtle hero visual opacity */
.hero-visual--subtle {
    opacity: 0.8;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
