/* site.css - scaleupnow.online
   Dark premium tech studio: electric lime accent, bright cyan secondary.
   A hand port of the former Lovable site's design (Tailwind v4 tokens and
   its custom utilities). Colours are oklch, as there; never hardcode them
   below the tokens. Breakpoints: 40rem (sm), 48rem (md), 64rem (lg). */

:root {
  --radius: 1rem;

  --background: oklch(0.16 0.018 258);
  --foreground: oklch(0.98 0.002 250);
  --surface: oklch(0.21 0.018 258);
  --surface-raised: oklch(0.25 0.018 258);
  --lime: oklch(0.87 0.24 128);
  --cyan: oklch(0.75 0.16 220);
  --primary-foreground: oklch(0.17 0.02 258);
  --muted-foreground: oklch(0.72 0.012 255);
  --destructive: oklch(0.62 0.22 25);
  --border: oklch(0.32 0.018 258);

  --gradient-hero:
    radial-gradient(ellipse 90% 60% at 20% 0%,
      color-mix(in oklab, var(--cyan) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 60% at 85% 20%,
      color-mix(in oklab, var(--lime) 14%, transparent), transparent 70%);
  --gradient-lime: linear-gradient(100deg, var(--lime),
    color-mix(in oklab, var(--lime) 60%, var(--cyan)));
  --shadow-glow-lime: 0 0 0 1px color-mix(in oklab, var(--lime) 35%, transparent),
    0 18px 50px -18px color-mix(in oklab, var(--lime) 55%, transparent);
  --shadow-glow-cyan: 0 0 0 1px color-mix(in oklab, var(--cyan) 45%, transparent),
    0 18px 50px -20px color-mix(in oklab, var(--cyan) 55%, transparent);
  --shadow-card: 0 24px 60px -30px oklch(0 0 0 / 0.9);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* ---- base ------------------------------------------------------------ */

*, *::before, *::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, dl, dd, ul, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

ul {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--lime);
  color: var(--primary-foreground);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  max-width: 64rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ---- shared pieces ---------------------------------------------------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1.333;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--lime);
}

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

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--gradient-hero);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn-lime {
  background-image: var(--gradient-lime);
  color: var(--primary-foreground);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-lime:hover {
  box-shadow: var(--shadow-glow-lime);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
  border-color: color-mix(in oklab, var(--cyan) 70%, transparent);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

.btn-glass {
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-md {
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.43;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.card:hover {
  border-color: color-mix(in oklab, var(--lime) 45%, transparent);
  box-shadow: var(--shadow-glow-lime);
  transform: translateY(-4px);
}

/* ---- header ------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    -webkit-backdrop-filter 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.header-logo img {
  width: auto;
  height: 5rem;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header-nav a,
.mobile-menu a {
  font-size: 0.875rem;
  line-height: 1.43;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s var(--ease);
}

.header-nav a:hover,
.mobile-menu a:hover {
  color: var(--lime);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header {
  display: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.43;
}

.menu-toggle {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.333;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
}

.mobile-menu[hidden] {
  display: none;
}

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 10rem;
  pointer-events: none;
  background-image: linear-gradient(to bottom, transparent, var(--background));
}

.hero-inner {
  position: relative;
}

.hero-title {
  max-width: 56rem;
  margin-top: 2rem;
  font-size: 3rem;
  line-height: 0.95;
}

.hero-lead {
  max-width: 42rem;
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 48rem;
  margin-top: 5rem;
}

.stat {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.stat dt {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.11;
  font-weight: 700;
  color: var(--lime);
}

.stat dd {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
}

/* ---- sections ---------------------------------------------------------- */

.section {
  position: relative;
  padding-block: 6rem;
}

.section-title {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 1.11;
}

.section-title.w-2xl {
  max-width: 42rem;
}

.section-title.w-3xl {
  max-width: 48rem;
}

/* Services */

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: 1.75rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface-raised);
  color: var(--lime);
  transition: color 0.15s var(--ease);
}

.service-card:hover .service-icon {
  color: var(--cyan);
}

.service-number {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1.333;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}

.service-card h3,
.work-body h3 {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.333;
}

.service-card > p:last-child {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Process */

.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.step-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 1.75rem;
}

.step-number {
  position: absolute;
  right: -1rem;
  top: -2rem;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  font-weight: 700;
  color: var(--surface-raised);
  pointer-events: none;
}

.step-card .eyebrow,
.step-card h3,
.step-copy {
  position: relative;
}

.step-card h3 {
  margin-top: 1rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

.step-copy {
  max-width: 24rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Work */

.work-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.75rem;
}

.work-image {
  overflow: hidden;
}

.work-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2rem;
}

.work-body h3 {
  transition: color 0.15s var(--ease);
}

.work-card:hover .work-body h3 {
  color: var(--lime);
}

.work-body p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Products */

.product-card {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding: 2.5rem;
  border-radius: 2rem;
}

.product-title {
  margin-top: 1rem;
  font-size: 1.875rem;
  line-height: 1.2;
}

.product-copy {
  max-width: 28rem;
  margin-top: 1.25rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.product-cta {
  margin-top: 2.25rem;
}

/* The tiles stretch to the height of the text beside them. */
.feature-list {
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface-raised);
  font-size: 0.875rem;
  line-height: 1.43;
}

.icon-check {
  width: 1rem;
  height: 1rem;
  color: var(--lime);
}

/* FAQ */

.faq-list {
  margin-top: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.555;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--lime);
}

.faq-chevron {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  max-width: 48rem;
  padding-bottom: 1.5rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* About */

.about-grid {
  display: grid;
  gap: 3rem;
}

.about-copy {
  font-size: 1.25rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.about-words {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.about-word {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.555;
  font-weight: 600;
  color: var(--lime);
}

/* Contact */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 2.5rem;
  background-color: var(--surface);
  background-image: var(--gradient-hero);
}

.contact-grid {
  position: relative;
  display: grid;
  gap: 3.5rem;
}

.contact-title {
  line-height: 1.02;
}

.contact-copy {
  max-width: 28rem;
  margin-top: 1.5rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  align-content: start;
  scroll-margin-top: 8rem;
}

.field {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface-raised);
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s var(--ease);
}

.field::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}

.field:focus,
.field:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

select.field {
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4a9b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1rem;
}

select.field:invalid {
  color: var(--muted-foreground);
}

select.field option {
  background: var(--surface-raised);
  color: var(--foreground);
}

textarea.field {
  resize: vertical;
  min-height: 7.5rem;
}

.btn-submit {
  padding: 1rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.43;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* The daemon's redirects end in #form-error or #submit-error. */
.form-banner {
  display: none;
  padding: 0.875rem 1.25rem;
  border: 1px solid color-mix(in oklab, var(--destructive) 60%, transparent);
  border-radius: 1.25rem;
  background: color-mix(in oklab, var(--destructive) 12%, transparent);
  font-size: 0.875rem;
  line-height: 1.5;
  scroll-margin-top: 10rem;
}

.form-banner:target {
  display: block;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- footer ------------------------------------------------------------ */

.site-footer {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-self: flex-start;
}

.footer-logo img {
  width: auto;
  height: 5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.footer-nav a,
.footer-legal a,
.footer-bottom p {
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
  transition: color 0.15s var(--ease);
}

.footer-nav a:hover {
  color: var(--lime);
}

.footer-legal a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ---- legal pages --------------------------------------------------------- */

.legal {
  max-width: 48rem;
  margin-inline: auto;
  padding: 9rem 1.5rem 6rem;
}

.legal-logo {
  width: auto;
  height: 3rem;
  margin-bottom: 2.5rem;
}

.legal-eyebrow {
  font-size: 0.75rem;
  line-height: 1.333;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
}

.legal h1 {
  margin-top: 1rem;
  font-size: 2.25rem;
  line-height: 1.11;
}

.legal-updated {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--muted-foreground);
}

.legal-intro {
  margin-top: 1.5rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.legal-sections {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.legal h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.legal section p {
  margin-top: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ---- thank-you and 404 pages -------------------------------------------- */

.notice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 10rem 1.5rem 6rem;
  text-align: center;
}

.notice-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 36rem;
}

.notice-title {
  margin-top: 2rem;
  font-size: 3rem;
  line-height: 1;
}

.notice-code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
}

.notice-subtitle {
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.notice-copy {
  margin-block: 1.5rem 2.5rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ---- breakpoints --------------------------------------------------------- */

@media (min-width: 40rem) {
  .btn-header {
    display: inline-flex;
  }

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

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 3rem;
    line-height: 1;
  }

  .contact-title {
    line-height: 1.02;
  }

  .services-grid,
  .work-grid,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-title {
    font-size: 2.25rem;
    line-height: 1.11;
  }

  .about-words {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .legal h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .notice-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 48rem) {
  .header-logo img {
    height: 7rem;
  }

  .hero {
    padding: 11rem 0 8rem;
  }

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

  .section {
    padding-block: 8rem;
  }

  .section-title {
    font-size: 3.75rem;
  }

  .contact-title {
    font-size: 3rem;
  }

  .product-card {
    padding: 3.5rem;
  }

  .contact-card {
    padding: 4rem;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-logo img {
    height: 6rem;
  }
}

@media (min-width: 64rem) {
  .header-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .mobile-menu:not([hidden]) {
    display: none;
  }

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

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid,
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }

  .btn-lime:hover,
  .btn-outline:hover,
  .card:hover,
  .work-card:hover .work-image img {
    transform: none;
  }
}
