@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");

:root {
  --bg: #fff8e1;
  --paper: #ffffff;
  --ink: #2b2110;
  --muted: #5a4b2f;
  --line: #3f2f0d24;
  --brand: #f59e0b;
  --brand-2: #facc15;
  --brand-3: #f97316;
  --accent: #ca8a04;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, #facc1530, transparent 35%),
    radial-gradient(circle at 85% 72%, #f59e0b24, transparent 33%),
    linear-gradient(135deg, #fff8e1, #fff4cc 48%, #fffbea);
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, #000 42%, transparent 100%);
}

.float-shape {
  position: fixed;
  width: 310px;
  height: 310px;
  border-radius: 38% 62% 48% 52% / 47% 43% 57% 53%;
  filter: blur(3px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  animation: morph 10s ease-in-out infinite;
}

.float-shape.one {
  top: -40px;
  left: -80px;
  background: linear-gradient(140deg, #f59e0b, #facc15);
}

.float-shape.two {
  right: -100px;
  bottom: 8%;
  background: linear-gradient(120deg, #f97316, #ca8a04);
  animation-delay: -3s;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: #fff9e9db;
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Bebas Neue", "Manrope", sans-serif;
  letter-spacing: 1px;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
  margin: 0.1rem 0;
  padding: 0.35rem 0.3rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.brand-text {
  display: inline-flex;
  align-items: center;
}

.brand-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: 2px solid #fff6dd;
  box-shadow: 0 8px 16px rgba(149, 83, 2, 0.28);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  border-color: #ca8a0460;
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #f97316);
  box-shadow: 0 12px 28px #f59e0b55;
  animation: pulse 2.5s ease-in-out infinite;
}

.btn-outline {
  color: #5a3b00;
  background: #ffffffcc;
  border-color: #ca8a0470;
}

.hero {
  padding: 5.2rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #ca8a0460;
  border-radius: 999px;
  background: #fff6d8;
  color: #7a5200;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.38rem 0.72rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", "Manrope", sans-serif;
  letter-spacing: 0.3px;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  max-width: 12ch;
  margin: 0 0 0.72rem;
}

.hero-title {
  max-width: 17ch;
  text-wrap: balance;
  line-height: 1;
}

.apply-title {
  max-width: 100%;
  white-space: nowrap;
}

.contact-title {
  max-width: 100%;
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

p {
  color: var(--muted);
}

.lead {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  max-width: 58ch;
  margin: 0 0 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pills span {
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ca8a0450;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  color: #6a4a00;
}

.hero-card {
  border: 1px solid #ca8a0455;
  border-radius: 1.2rem;
  padding: 1.45rem 1.3rem 1.2rem;
  background: linear-gradient(145deg, #ffffff, #fff6d8);
  box-shadow: 0 22px 40px #7a5a121f;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(120deg, #f59e0b35, #facc1536);
}

.hero-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 0.52rem;
  margin-bottom: 0.7rem;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  color: #5b4300;
  font-weight: 700;
}

.step-list li span {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  background: linear-gradient(130deg, #f59e0b, #f97316);
}

.marquee {
  margin: 0.4rem 0 2.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff8dc, #fff1c2);
  overflow: hidden;
}

.track {
  display: flex;
  width: max-content;
  animation: scrollX 20s linear infinite;
}

.track span {
  padding: 0.7rem 1.4rem;
  font-weight: 800;
  color: #6b4b00;
}

section {
  padding: 2.5rem 0;
}

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

.section-head p {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  color: #6b4b00;
  margin-bottom: 0.35rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.card {
  border: 1px solid #ca8a0442;
  border-radius: 1rem;
  padding: 1rem;
  background: var(--paper);
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 0 20px 28px #8a63131e;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.card a {
  color: #b45309;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.9rem;
}

.split,
.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.panel {
  border: 1px solid #ca8a0450;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.panel.highlight {
  background: linear-gradient(145deg, #fff9e5, #fff2cc);
  border-color: #f59e0b75;
}

.panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.panel ul {
  padding-left: 1rem;
  color: #5d4a23;
  display: grid;
  gap: 0.25rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mini-step {
  border: 1px solid #ca8a0442;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  transition: transform 0.25s ease;
}

.mini-step:hover {
  transform: translateY(-5px);
}

.mini-step span {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #b45309;
  font-weight: 800;
}

.mini-step h3 {
  font-size: 1.24rem;
  margin-bottom: 0.35rem;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.language-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.language-band span {
  border: 1px solid #ca8a0460;
  border-radius: 999px;
  background: #fff8de;
  padding: 0.5rem 0.7rem;
  text-align: center;
  font-weight: 700;
  color: #7a5200;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid #ca8a0442;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.faq-item h3 {
  font-size: 1.26rem;
  margin-bottom: 0.3rem;
}

.cta {
  border-radius: 1rem;
  border: 1px solid #ca8a0460;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  padding: 2.2rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  opacity: 0.16;
}

.cta::before {
  background: #f59e0b;
  left: -70px;
  top: -70px;
}

.cta::after {
  background: #f97316;
  right: -70px;
  bottom: -70px;
}

.cta p {
  max-width: 58ch;
  margin: 0.6rem auto 1rem;
}

.tab-shell {
  border: 1px solid #ca8a0442;
  border-radius: 1rem;
  padding: 0.9rem;
  background: #fff;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.tab-btn {
  border: 1px solid #ca8a0450;
  border-radius: 0.72rem;
  background: #fff8de;
  padding: 0.56rem;
  font: inherit;
  font-weight: 800;
  color: #7a5200;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(120deg, #f59e0b30, #facc1530);
  border-color: #f59e0b90;
}

.tab-panel {
  display: none;
  border: 1px solid #ca8a0442;
  border-radius: 0.8rem;
  padding: 1rem;
  background: #fff;
  animation: riseIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  padding-left: 1rem;
  margin-top: 0.5rem;
  color: #5d4a23;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.timeline .card span {
  display: inline-block;
  margin-bottom: 0.36rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 1px;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 0.85rem;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.dual-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-card {
  display: grid;
  gap: 0.8rem;
}

.contact-card p {
  color: #5d4a23;
}

.form-card {
  border: 1px solid #ca8a0450;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
}

.form-card ul {
  padding-left: 1rem;
  color: #5d4a23;
  display: grid;
  gap: 0.28rem;
}

.form {
  display: grid;
  gap: 0.8rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

label {
  display: grid;
  gap: 0.34rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.input {
  border: 1px solid #ca8a0460;
  border-radius: 0.72rem;
  padding: 0.65rem 0.72rem;
  font: inherit;
  background: #fffdf6;
}

.input:focus {
  outline: 2px solid #f59e0b45;
  border-color: #f59e0b9a;
}

textarea.input {
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.1rem 0 1.8rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #5f5134;
}

.footer-grid a {
  color: #b45309;
  font-weight: 800;
}

.form-popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(43, 33, 16, 0.42);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 100;
}

.form-popup.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-popup-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid #ca8a0460;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fffdf4, #fff3cd);
  padding: 1.2rem 1.1rem;
  box-shadow: 0 24px 40px rgba(97, 63, 8, 0.3);
}

.form-popup-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.5rem;
}

.form-popup-card p {
  color: #5d4a23;
}

.popup-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #ca8a0466;
  border-radius: 999px;
  background: #fff;
  color: #6b4b00;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrollX {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 12px 28px #f59e0b55;
  }
  50% {
    box-shadow: 0 16px 35px #f9731680;
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 38% 62% 48% 52% / 47% 43% 57% 53%;
    transform: translateY(0) rotate(0deg);
  }
  50% {
    border-radius: 52% 48% 63% 37% / 36% 58% 42% 64%;
    transform: translateY(16px) rotate(8deg);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .hero-grid,
  .split,
  .risk-grid,
  .form-layout,
  .dual-contact {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .timeline,
  .tab-list,
  .steps-grid,
  .use-case-grid,
  .language-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .brand {
    font-size: clamp(1.5rem, 8vw, 2rem);
    letter-spacing: 0.8px;
    padding: 0.2rem 0.1rem;
  }

  .brand-in {
    width: 1.82rem;
    height: 1.82rem;
    font-size: 0.7rem;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0.42rem;
    background: #fffaecf5;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 4%;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link,
  .btn {
    width: 100%;
    justify-content: center;
  }

  .grid-4,
  .timeline,
  .tab-list,
  .field-row,
  .steps-grid,
  .use-case-grid,
  .language-band {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }

  .hero-title {
    max-width: 100%;
  }

  .apply-title {
    white-space: normal;
  }

  .contact-title {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
