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

:root {
  --green-900: #052e16; --green-800: #0a3d1f; --green-700: #14532d;
  --green-600: #166534; --green-500: #1a8f3c; --green-400: #22c55e;
  --green-300: #4ade80; --green-200: #86efac; --green-100: #bbf7d0;
  --green-50: #ecfdf5;  --green-25: #f0fdf8;
  --orange-600: #ea580c; --orange-500: #f97316; --orange-400: #fb923c;
  --orange-300: #fdba74; --orange-100: #ffedd5; --orange-50: #fff7ed;
  --navy: #0a1f14;
  --bg: #f7fdf9;
  --bg-hero: linear-gradient(135deg, #ecfdf5 0%, #f0fdf8 35%, #ffffff 100%);
  --bg-alt: #f0fdf5;
  --card-bg: #ffffff;
  --text: #111827; --text-heading: #0a2e18; --text-secondary: #1a3a28;
  --text-muted: #5a7a66;
  --border: #d1fae5; --border-light: #ecfdf5;
  --radius-sm: 12px; --radius-md: 20px; --radius-lg: 32px; --radius-xl: 48px;
  --shadow-sm: 0 2px 8px rgba(5,46,22,0.04);
  --shadow-md: 0 8px 24px rgba(5,46,22,0.06);
  --shadow-lg: 0 20px 40px rgba(5,46,22,0.08);
  --shadow-hover: 0 24px 48px -12px rgba(22,163,74,0.15);
  --navbar-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-h); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

:focus-visible { outline: 2px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; padding: 13px 28px; border-radius: 50px;
  text-decoration: none; transition: all 0.3s ease;
  border: 1.5px solid transparent; font-size: 0.95rem;
  letter-spacing: -0.2px; cursor: pointer; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--green-500), var(--green-400)); color: white; box-shadow: 0 8px 24px rgba(22,163,74,0.22); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(22,163,74,0.32); }
.btn-outline { background: transparent; border-color: var(--green-500); color: var(--green-600); }
.btn-outline:hover { background: var(--green-50); border-color: var(--green-400); color: var(--green-500); transform: translateY(-2px); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 1000; border-bottom: 1px solid rgba(5,46,22,0.05); padding: 16px 0;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(5,46,22,0.06); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img { height: 44px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)); }
.logo-text {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-text span { background: linear-gradient(135deg, var(--orange-500), var(--orange-400)); -webkit-background-clip: text; background-clip: text; }

.desktop-nav { display: flex; gap: 8px; align-items: center; list-style: none; }
.desktop-nav a {
  text-decoration: none; font-weight: 500; color: var(--text-secondary);
  font-size: 0.95rem; padding: 8px 18px; border-radius: 50px;
  position: relative; overflow: hidden; transition: color 0.3s ease;
}
.desktop-nav a::before {
  content: ''; position: absolute; bottom: 6px; left: 18px; right: 18px;
  height: 2px; border-radius: 2px; background: var(--orange-500);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.desktop-nav a:hover { color: var(--orange-500); }
.desktop-nav a:hover::before { transform: scaleX(1); }
.desktop-nav a.active { color: var(--green-500); font-weight: 700; }

.mobile-menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-50); border: 1px solid var(--border);
  cursor: pointer; color: var(--green-700); font-size: 1.2rem; z-index: 1001;
  transition: all 0.3s ease; align-items: center; justify-content: center;
}
.mobile-menu-btn:hover { background: var(--green-100); }

/* ── Mobile Drawer ── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(5, 46, 22, 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1001; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 88%; max-width: 400px;
  background: #ffffff; z-index: 1002; transform: translateX(105%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.1); display: flex; flex-direction: column;
}
.mobile-drawer.is-open { transform: translateX(0); }
@supports (padding: max(0px)) {
  .mobile-drawer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border-light); }
.drawer-logo { font-size: 1.3rem; font-weight: 800; color: var(--text-heading); text-decoration: none; }
.drawer-logo span { color: var(--orange-500); }
.drawer-close {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--bg-alt); color: var(--text-heading); font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.drawer-close:hover { background: #fee2e2; color: #ef4444; }
.drawer-nav { flex: 1; padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.drawer-link {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text-heading);
  font-size: 1.35rem; font-weight: 700; padding: 16px 20px; border-radius: 16px;
  transition: background 0.25s ease, color 0.25s ease; opacity: 0; transform: translateX(30px);
}
.drawer-link i { font-size: 1.1rem; width: 28px; text-align: center; color: var(--text-muted); transition: color 0.25s; }
.drawer-link:hover { background: var(--bg-alt); color: var(--green-500); }
.drawer-link:hover i { color: var(--green-500); }
.drawer-link.active { background: var(--green-50); color: var(--green-600); }
.drawer-link.active i { color: var(--green-500); }
.mobile-drawer.is-open .drawer-link { opacity: 1; transform: translateX(0); }
.mobile-drawer.is-open .drawer-link:nth-child(1) { transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s, background 0.25s ease, color 0.25s ease; }
.mobile-drawer.is-open .drawer-link:nth-child(2) { transition: opacity 0.3s ease 0.13s, transform 0.3s ease 0.13s, background 0.25s ease, color 0.25s ease; }
.mobile-drawer.is-open .drawer-link:nth-child(3) { transition: opacity 0.3s ease 0.18s, transform 0.3s ease 0.18s, background 0.25s ease, color 0.25s ease; }
.mobile-drawer.is-open .drawer-link:nth-child(4) { transition: opacity 0.3s ease 0.23s, transform 0.3s ease 0.23s, background 0.25s ease, color 0.25s ease; }
.mobile-drawer.is-open .drawer-link:nth-child(5) { transition: opacity 0.3s ease 0.28s, transform 0.3s ease 0.28s, background 0.25s ease, color 0.25s ease; }
.mobile-drawer.is-open .drawer-link:nth-child(6) { transition: opacity 0.3s ease 0.33s, transform 0.3s ease 0.33s, background 0.25s ease, color 0.25s ease; }
.mobile-drawer.is-open .drawer-link:nth-child(7) { transition: opacity 0.3s ease 0.38s, transform 0.3s ease 0.38s, background 0.25s ease, color 0.25s ease; }
.drawer-footer { padding: 20px 28px 28px; border-top: 1px solid var(--border-light); }
.drawer-footer-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px; border-radius: 50px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  color: white; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: all 0.3s ease; box-shadow: 0 8px 24px rgba(22,163,74,0.22);
}
.drawer-footer-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(22,163,74,0.32); }
.drawer-social { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.drawer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-50); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem; text-decoration: none; transition: all 0.25s ease;
}
.drawer-social a:hover { background: var(--green-500); border-color: var(--green-500); color: white; transform: translateY(-2px); }

/* ── Page Hero ── */
.page-hero { padding: 90px 0 60px; background: var(--bg-hero); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%); pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); color: var(--green-600);
  padding: 7px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border); margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.page-hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--text-heading); margin-bottom: 20px; letter-spacing: -0.03em; line-height: 1.1; animation: fadeInUp 0.6s ease 0.1s both; }
.page-hero h1 span { background: linear-gradient(135deg, var(--green-500) 0%, var(--orange-500) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; animation: fadeInUp 0.6s ease 0.2s both; }

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

/* ── Story Sections ── */
.story-section { padding: 100px 0; }
.story-grid { display: flex; align-items: center; gap: 64px; }
.story-grid.reverse { flex-direction: row-reverse; }
.story-visual { flex: 1; }
.story-content { flex: 1; }
.visual-box {
  border-radius: var(--radius-lg); padding: 48px;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.visual-box.green-bg { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }
.visual-box.dark-bg { background: linear-gradient(135deg, var(--navy) 0%, var(--green-800) 100%); }
.hw-brand-mark {
  font-size: 8rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--green-400), var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.1)); animation: fadeInUp 0.6s ease 0.3s both;
}
.story-content h2 { font-size: 2.4rem; font-weight: 800; color: var(--text-heading); margin-bottom: 18px; letter-spacing: -0.02em; line-height: 1.15; }
.story-content p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }

/* ── Stats Section ── */
.stats-section { padding: 80px 0; background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-card {
  text-align: center; padding: 36px 20px; background: var(--card-bg); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--green-200); }
.stat-card h3 {
  font-size: 2.8rem; font-weight: 800; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--green-500), var(--orange-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card p { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }

/* ── Features / Values Section ── */
.features-section { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-card {
  display: flex; align-items: flex-start; gap: 20px; background: var(--card-bg); border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.feature-card:nth-child(odd) .feature-icon { background: var(--green-50); color: var(--green-500); }
.feature-card:nth-child(even) .feature-icon { background: var(--orange-50); color: var(--orange-500); }
.feature-text h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.feature-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Tech Stack Section ── */
.tech-section { padding: 80px 0; background: var(--bg-alt); text-align: center; }
.tech-section h2 { font-size: 2.2rem; font-weight: 800; color: var(--text-heading); margin-bottom: 12px; }
.tech-section p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.05rem; }
.tech-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-tag {
  padding: 10px 22px; border-radius: 50px; font-size: 0.88rem; font-weight: 600;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--green-600); box-shadow: var(--shadow-sm); transition: all 0.25s ease;
}
.tech-tag:nth-child(even) { background: var(--card-bg); border-color: var(--orange-100); color: var(--orange-600); }
.tech-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Footer ── */
footer { background: #000000; color: #a0a0a0; padding: 56px 0 24px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer-brand p { max-width: 280px; margin-top: 14px; font-size: 0.88rem; line-height: 1.7; color: #777; }
.footer-brand h3 { font-size: 1.5rem; font-weight: 800; color: #ffffff; letter-spacing: -0.02em; }
.footer-brand h3 span { color: var(--orange-400); }
.footer-col h4 { color: #ffffff; margin-bottom: 20px; font-size: 1.05rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #888; text-decoration: none; transition: color 0.2s; font-size: 0.9rem; }
.footer-col a:hover { color: var(--green-400); }
.footer-social-icons { display: flex; gap: 14px; margin-top: 22px; }
.footer-social-icons a {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  width: 40px; height: 40px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; color: #888; transition: all 0.25s ease; font-size: 0.95rem;
}
.footer-social-icons a:hover { background: var(--green-500); border-color: var(--green-500); color: white; transform: translateY(-3px); }
.subscribe-box { display: flex; gap: 8px; margin-top: 14px; }
.subscribe-box input { padding: 11px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: white; font-size: 0.88rem; width: 100%; font-family: inherit; }
.subscribe-box input::placeholder { color: #555; }
.subscribe-box input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(34,197,94,0.1); outline: none; }
.subscribe-box button { background: var(--green-500); border: none; border-radius: 50px; padding: 0 20px; color: white; cursor: pointer; font-weight: 700; transition: all 0.25s ease; flex-shrink: 0; }
.subscribe-box button:hover { background: var(--green-400); transform: translateY(-2px); }
.subscribe-success { font-size: 0.82rem; color: var(--green-400); margin-top: 10px; display: none; align-items: center; gap: 6px; }
.subscribe-success.show { display: flex; }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: #555; }
.footer-bottom a { color: #666; text-decoration: none; font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--green-400); }
.footer-legal { display: flex; gap: 20px; }

/* ── Responsive: Tablet ── */
@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .story-grid, .story-grid.reverse { flex-direction: column; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2.6rem; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .page-hero { padding: 60px 0 40px; }
  .page-hero h1 { font-size: 2.2rem; line-height: 1.15; }
  .page-hero p { font-size: 1rem; }
  .story-section { padding: 56px 0; }
  .visual-box { padding: 40px; min-height: auto; }
  .hw-brand-mark { font-size: 6rem; }
  .story-content h2 { font-size: 1.85rem; line-height: 1.2; }
  .story-content p { font-size: 1rem; }
  .stats-section { padding: 56px 0; }
  .stat-card h3 { font-size: 2.2rem; }
  .features-section { padding: 56px 0; }
  .btn { padding: 11px 22px; font-size: 0.88rem; }
  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* ── Responsive: Landscape Mobile ── */
@media (max-width: 920px) and (orientation: landscape) {
  .page-hero { padding: 50px 0 30px; }
  .story-section { padding: 40px 0; }
  .stats-section { padding: 40px 0; }
  .features-section { padding: 40px 0; }
}