:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --button-bg: #0a0a0a;
  --button-text: #ffffff;
  --border-soft: rgba(0, 0, 0, 0.08);
  --green: #17c964;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

sup {
  vertical-align: super;
}

h1,
h2,
h3,
h4 {
  font-family: "Outfit", sans-serif;
}

/* ============================= HERO ============================= */

.hero {
  position: relative;
  min-height: 850px;
  padding: 48px 36px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260626_041422_4a459e05-abce-4150-9fb7-4ededc423cd1.png&w=1280&q=85");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* Curved decorative lines */

.curved-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lines-side {
  position: absolute;
  top: 0;
  height: 100%;
  width: 340px;
}

.lines-side.lines-left {
  left: 0;
}

.lines-side.lines-right {
  right: 0;
}

.curve-line {
  position: absolute;
  top: 50%;
  height: 130%;
  border: 2.5px solid #fcfaf8;
  opacity: 0;
  animation: line-pulse 5s ease-in-out infinite;
}

.lines-left .curve-line {
  left: -40px;
  border-left: none;
  border-radius: 0 80% 80% 0;
  transform: translateY(-50%);
  transform-origin: right center;
}

.lines-right .curve-line {
  right: -40px;
  border-right: none;
  border-radius: 80% 0 0 80%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.lines-top {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
}

.curve-line-h {
  position: absolute;
  left: 50%;
  width: 130%;
  border: 2.5px solid #fcfaf8;
  border-top: none;
  border-radius: 0 0 80% 80%;
  opacity: 0;
  transform: translateX(-50%);
  transform-origin: center bottom;
  animation: line-pulse-h 5s ease-in-out infinite;
}

@keyframes line-pulse {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(1);
  }
  15% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.85);
  }
}

@keyframes line-pulse-h {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(1);
  }
  15% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }
}

/* Logo */

.hero-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 150px;
}

/* Title & subtitle */

.hero-title {
  max-width: 550px;
  font-family: "Outfit", sans-serif;
  font-size: 70px;
  line-height: 1.03;
  letter-spacing: -0.07em;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  margin: 0 0 20px;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-align: center;
  margin: 0 0 20px;
}

.hero-subtitle {
  max-width: 476px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  margin: 0 0 32px;
}

/* CTA row */

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.btn-primary {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  border-radius: 9999px;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Progressive blur */

.progressive-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 178px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 40%,
    #ffffff 100%
  );
}

/* ============================= SHARED SECTION LAYOUT ============================= */

.section {
  padding: 80px 36px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-title {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin: 0 0 12px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

/* ============================= ABOUT ============================= */

.about-inner {
  max-width: 720px;
}

.about-lead {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
  margin: 0 0 28px;
}

.dilemma-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.dilemma-row {
  font-size: 16px;
  line-height: 1.5;
}

.dilemma-strong {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.dilemma-muted {
  color: var(--muted);
}

.about-resolution {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  margin: 0 0 16px;
}

.about-resolution-strong {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* ============================= STACK (60/40) ============================= */

.stack-grid {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stack-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stack-stat {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stack-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 5px 10px;
}

.stack-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.stack-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text);
}

.stack-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}

.stack-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stack-chip {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.stack-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
  padding-top: 12px;
}

.stack-footer-strong {
  color: var(--text);
}

/* ============================= FOUNDATION / ARCHITECTURE CARDS ============================= */

.pillar-card,
.mode-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pillar-title,
.mode-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
}

.pillar-text,
.mode-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.pillar-tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
  font-family: monospace;
}

.mode-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-list li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.mode-check {
  color: var(--text);
  font-weight: 600;
}

.mode-example {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.mode-example-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 4px;
}

/* ============================= CONTACT ============================= */

.contact-inner {
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
}

.contact-title {
  max-width: 620px;
  font-size: 40px;
  text-align: center;
  margin: 0 auto 16px;
}

.contact-challenge {
  max-width: 620px;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin: 0 auto 40px;
}

.contact-underline {
  text-decoration: underline;
  text-decoration-color: var(--border-soft);
  text-underline-offset: 6px;
}

.contact-address {
  max-width: 620px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin: 8px 0;
  text-align: left;
}

.contact-address-block p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.contact-address-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-error {
  font-size: 13px;
  color: #c0392b;
  margin: 0;
}

.contact-link {
  color: var(--muted);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-options {
  display: flex;
  align-items: stretch;
  gap: 28px;
  text-align: left;
}

.contact-card,
.contact-meeting {
  flex: 1;
  min-width: 0;
}

.contact-card {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 36px;
  text-align: left;
}

.contact-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 1px;
  background: var(--border-soft);
  flex: none;
}

.contact-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 6px;
}

.contact-meeting {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 36px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.contact-meeting-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}

.contact-meeting-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 20px;
}

.contact-meeting .meetings-iframe-container {
  flex: 1;
  min-height: 480px;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.contact-meeting .meetings-iframe-container::-webkit-scrollbar {
  display: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-field input,
.contact-field textarea {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #ffffff;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.contact-submit {
  width: 100%;
  border: none;
  margin-top: 4px;
}

.contact-success {
  text-align: center;
  padding: 24px 0;
}

.contact-success h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}

.contact-success p {
  font-size: 15px;
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================= FOOTER ============================= */

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  border-top: 1px solid var(--border-soft);
  text-align: left;
}

.footer-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-text {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}

.footer .contact-address {
  max-width: none;
  margin: 0;
  justify-content: flex-end;
}

.footer-brand {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.footer-brand:hover {
  text-decoration: underline;
}

/* ============================= RESPONSIVE ============================= */

@media (max-width: 1200px) {
  .hero {
    padding: 40px 32px 140px;
  }

  .hero-title {
    font-size: clamp(60px, 8vw, 72px);
  }
}

@media (max-width: 1300px) and (min-width: 1001px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .contact-options {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-divider {
    width: 100%;
    height: 1px;
    align-self: stretch;
  }

  .contact-meeting .meetings-iframe-container {
    min-height: 400px;
  }
}

@media (max-width: 810px) {
  .hero {
    min-height: 760px;
    padding: 32px 24px 96px;
  }

  .hero::before {
    transform: rotate(90deg);
    transform-origin: center;
    width: 100vh;
    height: 100vw;
    top: 50%;
    left: 50%;
    margin-top: -50vw;
    margin-left: -50vh;
  }

  .lines-side {
    display: none;
  }

  .lines-top {
    display: block;
  }

  .hero-title {
    font-size: clamp(44px, 13vw, 52px);
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-logo {
    height: 48px;
    margin-bottom: 90px;
  }

  .section {
    padding: 56px 24px;
  }

  .section-title {
    font-size: 30px;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .stack-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-title {
    font-size: 30px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-meeting {
    padding: 24px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }

  .footer-about {
    align-items: center;
  }

  .footer .contact-address {
    justify-content: center;
    text-align: left;
  }

  .contact-meeting .meetings-iframe-container {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 430px) {
  .footer .contact-address {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .contact-address-block {
    width: 100%;
    text-align: center;
  }
}
