/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #127b33;
  --primary-hover: #0e6329;
  --accent: #F4C400;
  --text-dark: #111111;
  --text-gray: #5F6368;
  --text-light: #9E9E9E;
  --bg-white: #FFFFFF;
  --bg-light: #F7F7F5;
  --bg-dark: #111111;
  --border: #E0E0E0;
  --green: #127b33;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

/* ===== Navbar ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 48px;
  background: var(--bg-white);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar.bordered { border-bottom-color: #F0F0F0; }

.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}
.logo.blue { color: var(--green); font-size: 22px; }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-dark); }

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  border: 1px solid var(--border);
}

.lang-toggle button {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-gray);
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  font-size: 24px;
  color: var(--text-dark);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.btn-outline:hover { background: var(--bg-light); }

.btn-login {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 48px;
  background: var(--bg-white);
  text-align: center;
}

.hero-text { max-width: 720px; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.hero-title { font-size: 52px; font-weight: 700; line-height: 1.1; color: var(--text-dark); }
.hero-subtitle { font-size: 28px; font-weight: 600; color: var(--green); }
.hero-desc { font-size: 18px; color: var(--text-gray); line-height: 1.6; max-width: 600px; }

.hero-ctas { display: flex; gap: 16px; align-items: center; }

.hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  aspect-ratio: 2/1;
  border-radius: var(--radius);
  overflow: hidden;
  object-fit: cover;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 48px;
  text-align: center;
}
.page-hero.bg-light { background: var(--bg-light); }
.page-hero.bg-white { background: var(--bg-white); }

.page-hero h1 { font-size: 48px; font-weight: 700; color: var(--text-dark); max-width: 700px; }
.page-hero p { font-size: 18px; color: var(--text-gray); line-height: 1.6; max-width: 600px; }

/* ===== Bento / Feature Grid ===== */
.section { padding: 64px 48px; }
.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bento-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bento-card.dark {
  background: var(--bg-dark);
}
.bento-card.dark h3, .bento-card.dark p { color: #FFFFFF; }
.bento-card.dark p { color: var(--text-light); }

.bento-card h3 { font-size: 20px; font-weight: 600; color: var(--text-dark); }
.bento-card p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
}

/* Feature cards (Features page) */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 48px 64px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card.dark { background: var(--bg-dark); }
.feature-card.dark h3 { color: #FFFFFF; }
.feature-card.dark p { color: var(--text-light); }

.feature-card h3 { font-size: 20px; font-weight: 600; }
.feature-card p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

/* ===== Steps (How it Works) ===== */
.steps-section { padding: 0 48px 64px; display: flex; flex-direction: column; gap: 40px; }

.step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
}
.step-card.reverse { direction: rtl; }
.step-card.reverse > * { direction: ltr; }

.step-img {
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.step-label { font-size: 14px; color: var(--green); font-weight: 500; }

.step-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 32px;
}
.step-text h3 { font-size: 24px; font-weight: 700; }
.step-text p { font-size: 15px; color: var(--text-gray); line-height: 1.6; }

/* ===== CTA Section ===== */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 64px 48px;
  text-align: center;
}
.cta-section.bg-light { background: var(--bg-light); }
.cta-section.bg-dark { background: var(--bg-dark); }
.cta-section.bg-dark h2, .cta-section.bg-dark p { color: #FFFFFF; }
.cta-section.bg-dark p { color: var(--text-light); }

.cta-section h2 { font-size: 32px; font-weight: 700; }
.cta-section p { font-size: 16px; color: var(--text-gray); max-width: 500px; }

.cta-buttons { display: flex; gap: 16px; align-items: center; }

.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #374151;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* ===== Tutorials ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text-gray);
  transition: all 0.2s;
}
.tab.active {
  background: var(--text-dark);
  color: #FFFFFF;
}

.tutorials-content { padding: 48px; }

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tutorial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.tutorial-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.tutorial-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
}
.tutorial-card h3 { font-size: 18px; font-weight: 600; }
.tutorial-card p { font-size: 14px; color: var(--text-gray); line-height: 1.5; }
.tutorial-meta { font-size: 13px; color: var(--text-light); }
.tutorial-link { font-size: 14px; font-weight: 500; color: var(--primary); }

.search-box {
  width: 400px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-white);
  margin-top: 24px;
}

/* ===== Contact ===== */
.contact-content {
  display: flex;
  gap: 48px;
  padding: 64px 48px;
}

.contact-form {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form h2 { font-size: 24px; font-weight: 600; }

.form-row { display: flex; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.form-group input, .form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info { width: 380px; display: flex; flex-direction: column; gap: 32px; }

.info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card h3 { font-size: 16px; font-weight: 600; }
.info-card .detail { font-size: 15px; color: var(--text-dark); font-weight: 500; }
.info-card .note { font-size: 13px; color: var(--text-light); }

/* FAQ */
.faq-section { padding: 64px 48px; }
.faq-section h2 { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 32px; }

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

.faq-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
}
.faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

/* ===== Login ===== */
.login-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.brand-panel {
  background: var(--green);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.brand-panel::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}

.brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.brand-panel .brand-logo { font-size: 36px; font-weight: 700; color: #FFFFFF; }
.brand-panel .brand-subtitle { font-size: 18px; font-weight: 500; color: #FFFFFF; }
.brand-panel .brand-tagline { font-size: 14px; color: rgba(255,255,255,0.7); }

.feature-list { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  max-width: 380px;
}
.feature-item .feat-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.feature-item .feat-title { font-size: 14px; font-weight: 600; color: #FFFFFF; }
.feature-item .feat-desc { font-size: 12px; color: rgba(255,255,255,0.7); }

.brand-badges {
  display: flex;
  gap: 16px;
  padding-top: 8px;
}
.brand-badges span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.login-form-side {
  background: #E8ECF4;
  padding: 64px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #FFFFFF;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.login-card h2 { font-size: 28px; font-weight: 700; text-align: center; }
.login-card .sub { text-align: center; }

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
}
.input-with-icon input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-family: inherit;
  padding: 0;
}
.input-with-icon .icon { color: var(--text-light); font-size: 18px; }

.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.remember-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-gray);
  cursor: pointer;
}
.remember-row label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.remember-row .forgot { font-size: 13px; font-weight: 500; color: var(--green); }

.btn-login-submit {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-login-submit:hover { background: #d9af00; }

/* Mobile gradient header for login */
.login-gradient-header {
  background: var(--green);
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.login-gradient-header h1 { font-size: 28px; font-weight: 700; color: #FFFFFF; }
.login-gradient-header p { font-size: 16px; color: #FFFFFF; }
.login-gradient-header .brand-badges { justify-content: center; }
.login-card .sub { font-size: 14px; color: var(--text-gray); margin-top: -16px; }

.forgot-link { font-size: 13px; color: var(--green); text-align: right; margin-top: -8px; }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.signup-text { font-size: 14px; color: var(--text-gray); text-align: center; }
.signup-text a { color: var(--green); font-weight: 500; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer.light {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.footer-top { display: flex; justify-content: space-between; }

.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.footer-brand .logo { font-size: 20px; font-weight: 700; color: #FFFFFF; }
.footer.light .footer-brand .logo { color: var(--green); }
.footer-brand .tagline { font-size: 14px; color: var(--text-light); line-height: 1.5; }
.footer.light .footer-brand .tagline { color: var(--text-gray); }

.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: #FFFFFF; }
.footer.light .footer-col h4 { color: var(--text-dark); }
.footer-col a { font-size: 14px; color: var(--text-light); transition: color 0.2s; }
.footer.light .footer-col a { color: var(--text-gray); }
.footer-col a:hover { color: #FFFFFF; }
.footer.light .footer-col a:hover { color: var(--text-dark); }

.footer-bottom { text-align: center; padding-top: 16px; }
.footer-bottom p { font-size: 13px; color: var(--text-light); }
.footer.light .footer-bottom p { color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 99;
  }

  .hero { padding: 48px 20px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 20px; }
  .hero-desc { font-size: 16px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }

  .page-hero { padding: 48px 20px; }
  .page-hero h1 { font-size: 32px; }

  .section { padding: 48px 20px; }
  .section-title { font-size: 28px; }

  .bento-grid { grid-template-columns: 1fr; }
  .feature-grid { padding: 0 20px 48px; }
  .feature-row { grid-template-columns: 1fr; }

  .steps-section { padding: 0 20px 48px; }
  .step-card { grid-template-columns: 1fr; height: auto; }
  .step-card.reverse { direction: ltr; }
  .step-img { padding: 24px; min-height: 160px; }
  .step-text { padding: 24px; }

  .cta-section { padding: 48px 20px; }
  .cta-section h2 { font-size: 24px; }
  .cta-buttons { flex-direction: column; width: 100%; }

  .tutorials-content { padding: 24px 20px; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: wrap; }
  .search-box { width: 100%; }

  .contact-content { flex-direction: column; padding: 32px 20px; }
  .contact-info { width: 100%; }
  .form-row { flex-direction: column; }

  .faq-section { padding: 48px 20px; }
  .faq-grid { grid-template-columns: 1fr; }

  .login-body { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .login-gradient-header { display: flex; }
  .login-form-side { padding: 0; background: #FFFFFF; }
  .login-card { width: 100%; box-shadow: none; border-radius: 16px 16px 0 0; margin-top: -16px; position: relative; z-index: 1; padding: 32px 20px; }

  .footer { padding: 32px 20px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
}
