/* -----------------------------------------------------------
   BASE RESET
----------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111111;
    background: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button {
    font-family: "Inter", system-ui, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid #0070c9;
    outline-offset: 2px;
}

/* -----------------------------------------------------------
   LAYOUT
----------------------------------------------------------- */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1 0 auto;
    padding: 0;
    width: 100%;
    max-width: 1024px;
    padding: 0.75rem 1.5rem;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.static {
    position: static;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.top-auto {
    top: auto;
}

.right-auto {
    right: auto;
}

.bottom-auto {
    bottom: auto;
}

.left-auto {
    left: auto;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.7);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pipeline-loader {
    max-width: 480px;
    margin: 30px auto;
    font-family: system-ui, sans-serif;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    width: 40%;
    /* 40% because 2/4 steps are done */
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    border-radius: 4px;
    transition: width .35s ease;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    padding-left: 22px;
    position: relative;
    color: #888;
    font-size: 15px;
}

/* small dot indicator */
.step::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #ccc;
}

/* DONE */
.step.done {
    color: #4caf50;
    font-weight: 500;
}

.step.done::before {
    background: #4caf50;
}

/* ACTIVE (current step) */
.step.active {
    color: #1976d2;
    font-weight: 600;
}

.step.active::before {
    background: #1976d2;
    animation: pulse 1s infinite ease-in-out;
}

/* upcoming steps: default grey styles */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.5);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(25, 118, 210, 0);
    }
}


/* -----------------------------------------------------------
   NAVBAR
----------------------------------------------------------- */
/* Base layout bits (keep or merge with yours) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(245, 245, 247, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Centered to viewport via 3-column grid */
.navbar-inner {
    position: relative;
    /* IMPORTANT for submenu positioning */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0;
    max-width: 1024px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    justify-self: start;

    padding: 0.75rem 1.5rem;
}

.brand-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    display: inline-block;
}

/* Center nav links block */
.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
}

/* Top-level nav items */
.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    opacity: 0.78;
    transition: opacity 160ms ease-out, transform 160ms ease-out;
    font-size: 0.95rem;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* CTA */
.nav-cta {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.96;
}

.nav-cta:hover {
    opacity: 1;
}

/* ---------- FULL-WIDTH MEGA MENU WITH SECTIONS (NO FLICKER) ---------- */

.submenu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100vw;
    /* full width of navbar (which is full viewport) */
    padding: 2rem 0;
    background: #ffffff;

    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    display: none;
    z-index: 40;

    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.04);
}


/* inner container */
.submenu-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
}

/* section title */
.submenu-title {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6e6e73;
}

/* sub-items */
.submenu-subitem {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #111;
    opacity: 0.85;
    border-radius: 6px;
}

.submenu-subitem:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.04);
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .navbar-inner {
        padding-inline: 1rem;
    }

    .nav-links {
        gap: 0.9rem;
    }

    .submenu {
        padding: 1.5rem 0;
    }

    .submenu-inner {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Show submenu */
.nav-item:hover>.submenu {
    display: block;
}


/* Top-level link animation */
.nav-link {
    opacity: 0.78;
    transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* CTA link */
.nav-cta {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.96;
}

.nav-cta:hover {
    opacity: 1;
}

/* -----------------------------------------------------------
   HERO SECTION (placeholder)
----------------------------------------------------------- */
.hero {}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6e6e73;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.035em;
    margin: 0 0 0.75rem;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: #424245;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* -----------------------------------------------------------
  ICONS
----------------------------------------------------------- */
.icon {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    /* so it behaves like an image */
    width: 32px;
    height: 32px;
    /* required for backgrounds */
}

.icon--disabled {
    opacity: 0.3;
}

.google-icon {
    background-image: url("/assets/images/icons/google-favicon.svg");
    background-repeat: no-repeat;
    width: 18px;
}

.cloudflare-icon {
    background-image: url("/assets/images/icons/cloudflare.svg");
    background-repeat: no-repeat;
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1.75rem;
    font-size: 0.78rem;
    color: #6e6e73;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-link {
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
}

/* -----------------------------------------------------------
   MOBILE
----------------------------------------------------------- */
@media (max-width: 640px) {
    .navbar-inner {
        padding-inline: 1rem;
    }

    .nav-links {
        gap: 0.9rem;
    }

    .nav-hide-sm {
        display: none;
    }

    .submenu {
        left: 0;
        transform: none;
    }

    .page-main {
        padding-inline: 1rem;
    }

    .placeholder-card {
        padding-inline: 1.25rem;
    }
}