/* Inventlix Digital Labs — light theme */

:root {
  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f0f2f5;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-dim: rgba(13, 148, 136, 0.12);
  --accent-2: #6366f1;
  --gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 45%, #6366f1 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1100px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .nav ul {
    gap: 0.75rem 1rem;
  }

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(3.5rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 20%, rgba(99, 102, 241, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 70%, rgba(20, 184, 166, 0.08), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 20ch;
  color: var(--text);
}

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

.hero-lead {
  max-width: 44rem;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.125rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: #fff;
}

.btn-block {
  width: 100%;
}

.btn-external {
  font-size: 0.85em;
  opacity: 0.9;
}

/* Sections */

.section {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head-center {
  text-align: center;
  margin-inline: auto;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.section-sub-center {
  margin-left: auto;
  margin-right: auto;
}

/* Meal Planner feature */

.section-feature {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.meal-feature {
  display: grid;
  gap: 2rem;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

@media (min-width: 800px) {
  .meal-feature {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.meal-feature-title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.meal-benefits {
  margin: 0 0 1.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.meal-benefits li {
  margin-bottom: 0.5rem;
}

.meal-benefits li::marker {
  color: var(--accent);
}

.meal-feature-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.meal-domain {
  margin: 0;
  font-size: 0.9rem;
}

.meal-domain-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meal-domain a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.meal-domain a:hover {
  text-decoration: underline;
}

.meal-feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: linear-gradient(160deg, var(--accent-dim), rgba(99, 102, 241, 0.08));
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.meal-visual-card {
  text-align: center;
  padding: 1.5rem;
}

.meal-visual-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.meal-visual-text {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

/* Cards grid */

.grid.cards {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .grid.cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: var(--shadow-md);
}

.card-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 650;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Products */

.product-showcase {
  display: grid;
  gap: 1.25rem;
}

.product-showcase-single {
  max-width: 42rem;
}

@media (min-width: 800px) {
  .product-showcase:not(.product-showcase-single) {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.product-card-soft {
  background: var(--surface-soft);
}

.product-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
}

.product-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 650;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Strip */

.section-strip {
  padding: clamp(2.5rem, 6vw, 3.25rem) 0;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.06), rgba(99, 102, 241, 0.06));
  border-block: 1px solid var(--border);
}

.strip-quote {
  margin: 0;
}

.strip-quote p {
  margin: 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-style: italic;
  color: var(--muted);
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  line-height: 1.55;
}

/* Contact */

.section-contact {
  padding-bottom: clamp(3.5rem, 9vw, 5.5rem);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 840px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.contact-copy > p {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 32rem;
}

.contact-meta {
  margin: 0;
}

.contact-meta > div {
  margin-bottom: 1.25rem;
}

.contact-meta dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-meta dd {
  margin: 0;
  font-weight: 500;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-panel-title {
  font-weight: 650;
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.contact-panel-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.form-status[hidden] {
  display: none !important;
}

.form-status--ok {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--text);
}

.form-status--err {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(13, 148, 136, 0.25);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.contact-form .btn {
  margin-top: 0.25rem;
  cursor: pointer;
  border: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-brand,
.footer-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-note a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.footer-note a:hover {
  text-decoration: underline;
}
