:root {
  --green: #1f6b4a;
  --green-deep: #16553a;
  --green-soft: #e8f3ed;
  --ink: #1a1f1c;
  --muted: #5c675f;
  --line: #e4ebe6;
  --white: #ffffff;
  --footer: #15191a;
  --up: #1f8a4c;
  --down: #c23b3b;
  --shadow: 0 10px 30px rgba(21, 40, 30, 0.08);
  --radius: 999px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 235, 230, 0.9);
  box-shadow: 0 8px 24px rgba(15, 30, 22, 0.06);
}

.site-header:not(.scrolled) .logo-text,
.site-header:not(.scrolled) .nav a,
.site-header:not(.scrolled) .link-login {
  color: rgba(255, 255, 255, 0.92);
}

.site-header:not(.scrolled) .logo-text span {
  color: #9be0b8;
}

.site-header:not(.scrolled) .nav a:hover,
.site-header:not(.scrolled) .nav a.active {
  color: #ffffff;
}

.site-header:not(.scrolled) .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.site-header:not(.scrolled) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.site-header:not(.scrolled) .nav-toggle span {
  background: #ffffff;
}

.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  opacity: 0.7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(31, 107, 74, 0.3));
}

.logo-mark svg {
  display: block;
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 800;
}

.logo-text span {
  font-weight: 700;
  color: var(--green);
  margin-left: 0.06rem;
  letter-spacing: 0.02em;
}

.logo.light .logo-mark {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.logo.light .logo-text {
  color: #ffffff;
}

.logo.light .logo-text span {
  color: #7dcea0;
}

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

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

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

.link-login {
  font-weight: 600;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--green);
  color: var(--white);
}

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

.btn-outline {
  border-color: #c8d5cd;
  background: transparent;
  color: var(--ink);
}

.btn-outline.light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: transparent;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=2000&q=80")
      center 35% / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 14, 0.35) 0%, rgba(8, 18, 14, 0.18) 40%, rgba(8, 18, 14, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0 5rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: fadeUp 0.9s ease both;
}

.hero p {
  margin: 1rem 0 1.6rem;
  font-size: 1.15rem;
  opacity: 0.95;
  animation: fadeUp 0.9s ease 0.12s both;
}

.hero .btn {
  animation: fadeUp 0.9s ease 0.22s both;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.4rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.markets,
.stats,
.products,
.faq,
.contact {
  padding: 5.5rem 0;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.tab {
  border: 1.5px solid #d7e0da;
  background: var(--white);
  color: #6b746e;
  border-radius: var(--radius);
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tab:hover {
  border-color: var(--green);
  color: var(--green);
}

.tab.active {
  background: var(--white);
  border-color: var(--green);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(31, 107, 74, 0.08);
}

.tv-widget-shell {
  border: 1px solid #e0e3eb;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(19, 23, 34, 0.08);
}

.tradingview-widget-container {
  width: 100%;
}

.tradingview-widget-container__widget {
  width: 100%;
}

.stats {
  background:
    radial-gradient(circle at top right, rgba(31, 107, 74, 0.08), transparent 40%),
    linear-gradient(180deg, #f8fbf9 0%, #ffffff 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stats-grid article {
  text-align: center;
  padding: 2rem 1rem;
}

.stats-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 14px;
  padding: 1.6rem 1.45rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(21, 40, 30, 0.12);
}

.product-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

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

.product-card a {
  color: var(--green);
  font-weight: 700;
}

.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, #0f4630 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}

.cta-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 600;
}

.cta-banner p {
  margin: 0.8rem 0 1.5rem;
  opacity: 0.92;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.8rem;
  background: #fbfdfc;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fbfdfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(31, 107, 74, 0.25);
  border-color: var(--green);
}

.form-note {
  margin: 0;
  color: var(--green);
  font-weight: 600;
}

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin: 1rem 0 1.25rem;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer h4 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

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

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

.nav-mobile-only {
  display: none;
}

@media (max-width: 960px) {
  .container {
    width: min(1140px, calc(100% - 1.5rem));
  }

  .site-header {
    position: fixed;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(228, 235, 230, 0.9);
  }

  .site-header:not(.scrolled) .logo-text,
  .site-header:not(.scrolled) .nav a,
  .site-header:not(.scrolled) .link-login {
    color: var(--ink);
  }

  .site-header:not(.scrolled) .logo-text span {
    color: var(--muted);
  }

  .site-header:not(.scrolled) .btn-outline {
    border-color: #c8d5cd;
    color: var(--ink);
  }

  .site-header:not(.scrolled) .nav-toggle {
    border-color: var(--line);
    background: var(--white);
  }

  .site-header:not(.scrolled) .nav-toggle span {
    background: var(--ink);
  }

  .header-inner {
    min-height: 64px;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 1.25rem 1rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-mobile-only {
    display: block;
  }

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

  .hero {
    min-height: 72vh;
    padding-top: 64px;
  }

  .hero-content {
    padding: 4.5rem 0 3.5rem;
  }

  .stats-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .market-tabs {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .tab {
    flex: 0 0 auto;
    padding: 0.65rem 1.05rem;
  }

  .tv-widget-shell {
    border-radius: 10px;
  }

  .tradingview-widget-container__widget iframe {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  .link-login {
    display: none;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .auth-page .link-login,
  .auth-page .header-actions .btn-outline,
  .auth-page .header-actions .btn-primary {
    display: inline-flex;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-text span {
    display: none;
  }

  .hero {
    min-height: 68vh;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .hero p {
    font-size: 1rem;
  }

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

  .section-head h2 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .markets,
  .stats,
  .products,
  .faq,
  .contact {
    padding: 3rem 0;
  }

  .product-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .stats-grid article {
    padding: 1.2rem 0.5rem;
  }

  .cta-banner {
    padding: 3.2rem 0;
  }

  .cta-banner h2 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .btn {
    min-height: 46px;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .site-footer {
    padding-top: 2.8rem;
  }

  .auth-main {
    padding: 5.5rem 1rem 2rem;
  }

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

  .auth-panel {
    padding: 1.35rem 1.1rem;
    border-radius: 16px;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tradingview-widget-container__widget iframe {
    min-height: 420px !important;
  }
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(31, 107, 74, 0.12), transparent 36%),
    linear-gradient(180deg, #f4f8f5 0%, #ffffff 48%, #f7faf8 100%);
}

.auth-header {
  position: fixed !important;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 3rem;
}

.auth-panel {
  width: min(480px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(21, 40, 30, 0.1);
  padding: 2rem 1.8rem 1.8rem;
}

.auth-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}

.auth-copy p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fbfdfc;
}

.auth-form input:focus {
  outline: 2px solid rgba(31, 107, 74, 0.22);
  border-color: var(--green);
}

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

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-form .check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--muted);
}

.auth-form .check input {
  margin-top: 0.2rem;
}

.auth-link,
.auth-switch a {
  color: var(--green);
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-switch {
  margin: 0.2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-error {
  margin: 0;
  color: var(--down);
  font-weight: 600;
}
