:root {
  --bg: #F5F7F5;
  --surface: #ffffff;
  --green: #1A7A4A;
  --green-light: #25A062;
  --green-soft: #E8F5EE;
  --on-bg: #0D1C12;
  --muted: #5C6B62;
  --white: #ffffff;
  --border: rgba(26, 122, 74, 0.12);
  --header-bg: rgba(245, 247, 245, 0.85);
  --shadow: 0 8px 32px rgba(13, 28, 18, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 28, 18, 0.12);
  --radius: 16px;
  --toggle-bg: rgba(26, 122, 74, 0.08);
  --toggle-active-bg: #ffffff;
  --toggle-active-text: var(--green);
  --preview-border: rgba(13, 28, 18, 0.08);
}

html[data-theme="dark"] {
  --bg: #0B100D;
  --surface: #121A15;
  --green: #34D399;
  --green-light: #4ADE80;
  --green-soft: rgba(52, 211, 153, 0.12);
  --on-bg: #E8F0EA;
  --muted: #9BB0A3;
  --white: #ffffff;
  --border: rgba(52, 211, 153, 0.14);
  --header-bg: rgba(11, 16, 13, 0.88);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --toggle-bg: rgba(52, 211, 153, 0.1);
  --toggle-active-bg: rgba(52, 211, 153, 0.18);
  --toggle-active-text: #D1FAE5;
  --preview-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

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

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.2rem;
  padding-block: 0;
}

@media (min-width: 1024px) {
  .nav {
    height: 4.9rem;
  }
}

.nav-left {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.nav-techas-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  display: flex;
  max-width: min(68vw, 72%);
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.nav-techas-logo:hover {
  opacity: 0.88;
}

.nav-techas-logo .techas-logo {
  height: 4.5rem;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (min-width: 640px) {
  .nav-techas-logo .techas-logo {
    height: 4.875rem;
  }
}

@media (min-width: 1024px) {
  .nav-techas-logo .techas-logo {
    height: 5.25rem;
  }
}

.techas-logo--theme-dark {
  display: none;
}

html[data-theme="dark"] .techas-logo--theme-light {
  display: none;
}

html[data-theme="dark"] .techas-logo--theme-dark {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand img {
  border-radius: 12px;
}

.nav-controls {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--toggle-bg);
  border: 1px solid var(--border);
}

.toggle-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.toggle-btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.toggle-btn svg {
  width: 1rem;
  height: 1rem;
}

.toggle-btn[aria-pressed="true"] {
  background: var(--toggle-active-bg);
  color: var(--toggle-active-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.toggle-btn:hover {
  color: var(--on-bg);
}

.nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

html[data-theme="dark"] .nav-cta {
  color: #0B100D;
}

.nav-cta:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4.2rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 4.9rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 160, 98, 0.2), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 201, 122, 0.1), transparent),
    var(--bg);
}

html[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(52, 211, 153, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(37, 160, 98, 0.08), transparent),
    var(--bg);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.eyebrow {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--white);
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(26, 122, 74, 0.35);
}

html[data-theme="dark"] .download-btn:not(.download-btn--light) {
  color: #0B100D;
}

.download-btn--full {
  width: 100%;
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

.download-btn:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 122, 74, 0.4);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
  color: var(--green);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}

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

.hero-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.preview-frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--preview-border);
  background: #111;
}

.features {
  padding: 6rem 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

html[data-theme="dark"] .cta {
  color: #0B100D;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-logo {
  border-radius: 18px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

.cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.cta p {
  opacity: 0.9;
  font-size: 1.05rem;
}

.download-btn--light {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .download-btn--light {
  background: #0B100D;
  color: #D1FAE5;
}

.download-btn--light:hover {
  background: var(--bg);
  color: var(--on-bg);
}

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-controls {
    width: auto;
    flex: 1;
    justify-content: flex-end;
  }

  .brand span {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 3rem 2rem;
  }

  .hero-desc,
  .hero-meta {
    margin-inline: auto;
  }

  .hero-actions {
    margin-inline: auto;
    width: 100%;
    max-width: 22rem;
  }

  .hero-visual {
    order: -1;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
