@font-face {
  font-family: "BalooThambi";
  src: url("../assets/fonts/BalooThambi-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --eci-bg: #fff8dd;
  --eci-bg-deep: #ffe9cb;
  --eci-orange: #fb9c1b;
  --eci-orange-deep: #e8880f;
  --eci-dark: #303030;
  --eci-muted: rgba(48, 48, 48, 0.66);
  --eci-line: rgba(48, 48, 48, 0.12);
  --eci-white: #ffffff;
  --eci-max: 1120px;
  --eci-radius: 28px;
  --font-display: "BalooThambi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--eci-dark);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(251, 156, 27, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 233, 203, 0.9), transparent 50%),
    linear-gradient(180deg, var(--eci-bg) 0%, #fff4c8 48%, var(--eci-bg) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 221, 0.86);
  border-bottom: 1px solid var(--eci-line);
}

.nav {
  max-width: var(--eci-max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--eci-dark);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--eci-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 14px;
  color: var(--eci-muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--eci-dark);
  background: rgba(251, 156, 27, 0.16);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--eci-dark);
  background: var(--eci-bg-deep);
  color: var(--eci-dark);
  border-radius: 12px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(48, 48, 48, 0.18) 0%, rgba(48, 48, 48, 0.55) 58%, rgba(48, 48, 48, 0.78) 100%),
    linear-gradient(90deg, rgba(251, 156, 27, 0.28), transparent 45%);
}

.hero-inner {
  max-width: var(--eci-max);
  width: 100%;
  margin: 0 auto;
  padding: 56px 22px 64px;
  color: var(--eci-white);
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  font-weight: normal;
  max-width: 14ch;
  margin-bottom: 14px;
}

.hero p {
  max-width: 38ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--eci-orange);
  color: var(--eci-white);
  border-color: var(--eci-orange);
}

.btn-primary:hover {
  background: var(--eci-orange-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--eci-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.section {
  max-width: var(--eci-max);
  margin: 0 auto;
  padding: 72px 22px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
  animation: riseIn 0.8s ease both;
}

.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--eci-orange);
  font-family: var(--font-display);
  font-size: 18px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  font-weight: normal;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--eci-muted);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature {
  position: relative;
  min-height: 280px;
  border-radius: var(--eci-radius);
  overflow: hidden;
  border: 2px solid var(--eci-dark);
  isolation: isolate;
  animation: riseIn 0.9s ease both;
}

.feature:nth-child(2) { animation-delay: 0.08s; }
.feature:nth-child(3) { animation-delay: 0.16s; }
.feature:nth-child(4) { animation-delay: 0.24s; }

.feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.feature:hover img {
  transform: scale(1.05);
}

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(48, 48, 48, 0.05), rgba(48, 48, 48, 0.78));
}

.feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: var(--eci-white);
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 6px;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  max-width: 36ch;
}

.panel-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: var(--eci-bg-deep);
  border: 2px solid var(--eci-dark);
  border-radius: 36px;
  padding: 28px;
}

.panel-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 12px;
}

.panel-strip p {
  color: var(--eci-muted);
  margin-bottom: 20px;
}

.panel-visual {
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--eci-dark);
  min-height: 280px;
}

.panel-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.link-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-action {
  display: block;
  background: var(--eci-bg);
  border: 2px solid var(--eci-dark);
  border-radius: 24px;
  padding: 22px 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.link-action:hover {
  transform: translateY(-3px);
  background: #fffdf3;
}

.link-action strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 6px;
}

.link-action span {
  color: var(--eci-muted);
  font-size: 14px;
}

.page-hero {
  max-width: var(--eci-max);
  margin: 0 auto;
  padding: 48px 22px 18px;
}

.page-hero .eyebrow {
  color: var(--eci-orange);
  font-family: var(--font-display);
  font-size: 18px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: normal;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.page-hero p {
  color: var(--eci-muted);
  max-width: 62ch;
}

.doc-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 22px 80px;
}

.doc {
  background: var(--eci-bg-deep);
  border: 2px solid var(--eci-dark);
  border-radius: 28px;
  padding: 28px 22px;
}

.doc .updated {
  color: var(--eci-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.doc h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: normal;
  margin: 26px 0 10px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  font-size: 16px;
  margin: 14px 0 8px;
}

.doc p,
.doc li {
  color: var(--eci-dark);
  margin-bottom: 10px;
}

.doc ul {
  margin: 0 0 12px 18px;
}

.doc a {
  color: var(--eci-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(251, 156, 27, 0.14);
  border: 1px solid rgba(251, 156, 27, 0.4);
  border-radius: 16px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  max-width: var(--eci-max);
  margin: 0 auto;
  padding: 8px 22px 80px;
}

.support-panel {
  background: var(--eci-bg-deep);
  border: 2px solid var(--eci-dark);
  border-radius: 28px;
  padding: 24px;
}

.support-panel h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 10px;
}

.support-panel p {
  color: var(--eci-muted);
  margin-bottom: 16px;
}

.faq details {
  border-top: 1px solid var(--eci-line);
  padding: 14px 0;
}

.faq details:first-of-type {
  border-top: none;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  list-style: none;
}

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

.faq details p {
  margin-top: 8px;
  color: var(--eci-muted);
}

.support-form {
  display: grid;
  gap: 12px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--eci-muted);
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 2px solid var(--eci-dark);
  border-radius: 16px;
  background: var(--eci-bg);
  color: var(--eci-dark);
  font: inherit;
  padding: 12px 14px;
}

.support-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--eci-muted);
}

.site-footer {
  border-top: 1px solid var(--eci-line);
  background: rgba(255, 233, 203, 0.55);
}

.footer-inner {
  max-width: var(--eci-max);
  margin: 0 auto;
  padding: 36px 22px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}

.footer-inner p,
.footer-inner a {
  color: var(--eci-muted);
  font-size: 14px;
}

.footer-inner h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 10px;
}

.footer-inner ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-inner a:hover {
  color: var(--eci-dark);
}

.footer-bottom {
  max-width: var(--eci-max);
  margin: 0 auto;
  padding: 0 22px 24px;
  color: var(--eci-muted);
  font-size: 13px;
}

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

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@media (max-width: 900px) {
  .feature-grid,
  .panel-strip,
  .link-actions,
  .support-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    background: var(--eci-bg);
    border: 2px solid var(--eci-dark);
    border-radius: 20px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.is-open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
