/* GREENSTAR PE — Design System */
:root {
  --green: #0b6b3a;
  --green-mid: #0a5c32;
  --dark-green: #06452a;
  --deeper: #04321f;
  --gold: #d4af37;
  --gold-deep: #b8942a;
  --light-gold: #f4e5a3;
  --white: #ffffff;
  --bg: #f7faf8;
  --bg-soft: #eef6f1;
  --text: #17221c;
  --muted: #66736b;
  --line: rgba(11, 107, 58, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 50px rgba(6, 69, 42, 0.1);
  --shadow-sm: 0 8px 24px rgba(6, 69, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 82px;
  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--gold);
  color: var(--dark-green);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.22s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(180deg, #e3c45a 0%, var(--gold) 100%);
  color: var(--deeper);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(244, 229, 163, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

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

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

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 50, 31, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo img,
.logo svg {
  width: auto;
  height: 42px;
}

.site-footer .logo img,
.site-footer .logo svg {
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a,
.nav-btn {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-btn::after {
  content: "▾";
  font-size: 10px;
  margin-left: 4px;
  color: var(--gold);
}

.nav a:hover,
.nav-btn:hover,
.nav a.active {
  color: var(--light-gold);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: none;
  grid-template-columns: 1fr;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--green);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.18), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(244, 229, 163, 0.08), transparent 26%),
    linear-gradient(160deg, var(--deeper) 0%, var(--dark-green) 48%, var(--green) 100%);
  color: var(--white);
  padding: 72px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
  margin-bottom: 18px;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 12px;
  color: var(--light-gold);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 999px;
}

.dashboard {
  position: relative;
}

.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(244, 229, 163, 0.18);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: rgba(6, 69, 42, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.float-chip.one { top: 18px; left: -18px; }
.float-chip.two { top: 42%; right: -22px; }
.float-chip.three { bottom: 28px; left: 8%; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg);
}

.section-dark {
  background:
    radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.12), transparent 24%),
    linear-gradient(180deg, var(--deeper), var(--dark-green));
  color: var(--white);
}

.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-head.center,
.center {
  text-align: center;
  margin-inline: auto;
}

.section h2,
.page-hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.gold-rule {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--light-gold));
  border-radius: 99px;
  margin: 0 0 16px;
}

.center .gold-rule {
  margin-inline: auto;
}

/* Cards */
.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, 0.35);
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  border: 1px solid var(--line);
  color: var(--green);
  margin-bottom: 16px;
}

.icon-wrap.gold {
  background: linear-gradient(180deg, var(--light-gold), #fff);
  color: var(--gold-deep);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p,
.muted {
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.stat {
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 13.5px;
}

/* Services */
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card h3 {
  font-size: 20px;
}

.kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.feature-list {
  margin: 16px 0 22px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.link {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link:hover {
  color: var(--dark-green);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-item {
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
}

.why-item .num {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.why-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.why-item p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14.5px;
}

/* Solutions */
.audience-card {
  min-height: 210px;
  background:
    linear-gradient(180deg, rgba(11, 107, 58, 0.04), transparent 40%),
    var(--white);
}

/* API */
.api-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--light-gold);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.check-grid li {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14.5px;
  padding-left: 22px;
  position: relative;
}

.check-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 13px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 8px;
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.security-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.security-points li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 500;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.16), transparent 32%),
    linear-gradient(135deg, var(--dark-green), var(--green));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 62ch;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-item h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.contact-item a {
  display: block;
  font-weight: 600;
  color: var(--green);
}

.contact-item a:hover {
  color: var(--dark-green);
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 107, 58, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note,
.form-success {
  font-size: 13.5px;
  color: var(--muted);
}

.form-success {
  display: none;
  color: var(--green);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px;
}

.form.is-sent .form-success {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--deeper);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 14px;
}

.site-footer a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-brand p {
  margin-top: 12px;
  max-width: 32ch;
  color: var(--light-gold);
  font-size: 14px;
}

.footer-address {
  margin-top: 14px !important;
  max-width: 34ch !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 13.5px !important;
  line-height: 1.55;
}

.footer-phones {
  margin-top: 10px !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer-phones a {
  display: block;
  color: var(--light-gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.compliance {
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.55);
}

/* Inner pages */
.page-hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(212, 175, 55, 0.16), transparent 26%),
    linear-gradient(160deg, var(--deeper), var(--dark-green) 60%, var(--green));
  color: var(--white);
  padding: 64px 0 56px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--light-gold);
}

.prose {
  max-width: 780px;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 14px;
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin: 28px 0 10px;
}

.prose ul {
  padding-left: 18px;
}

.prose li {
  list-style: disc;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mission-card {
  padding: 32px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.mission-card.vision {
  background: linear-gradient(180deg, var(--dark-green), var(--green));
  color: var(--white);
  border: 0;
}

.mission-card.vision p {
  color: rgba(255, 255, 255, 0.84);
}

/* Service detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
}

.side-card {
  position: sticky;
  top: 104px;
  background: var(--dark-green);
  color: var(--white);
  border-radius: 22px;
  padding: 26px;
}

.side-card p {
  color: rgba(255, 255, 255, 0.78);
  margin: 10px 0 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
}

/* Docs */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.docs-table th {
  background: var(--bg);
  color: var(--dark-green);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--green);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.dashboard-art {
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .api-layout,
  .security-grid,
  .contact-grid,
  .detail-layout,
  .footer-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .why-grid,
  .steps,
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .float-chip.two,
  .float-chip.one {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--deeper);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line-dark);
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 6px;
  }

  .dropdown.is-open .dropdown-menu {
    display: grid;
  }

  .dropdown-menu a {
    color: var(--white);
  }
}

@media (max-width: 720px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .why-grid,
  .steps,
  .stat-strip,
  .form-row,
  .check-grid,
  .security-points {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .header-cta .btn {
    display: none;
  }

  .logo img,
  .logo svg {
    height: 28px;
  }

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

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
