/* =========================================================
   Telmy.ai — Web Platform CSS System
   Inspired by Google Material You & Modern Web Design
   ========================================================= */

:root {
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-light: #e8f0fe;
  --primary-dark: #0d47a1;
  --secondary: #34a853;
  --warning: #fbbc04;
  --danger: #ea4335;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #bfdbfe;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-gradient);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary);
}

.btn-nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-nav-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
  transform: translateY(-1px);
}

.btn-nav-dashboard {
  background: linear-gradient(135deg, #0071e3 0%, #0099ff 100%) !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3) !important;
}

.btn-nav-dashboard:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.4) !important;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 100%;
  height: 2px;
  background: #1d1d1f;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.lang-select-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.lang-select-nav:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.lang-select-nav:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}


/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #0f172a;
  max-width: 860px;
  margin: 0 auto 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1a73e8 0%, #2563eb 50%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
  transition: all 0.2s;
}

.btn-hero-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26, 115, 232, 0.4);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--text-main) !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Hero Showcase Frame */
.showcase-frame {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.frame-topbar {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.frame-dots span:nth-child(1) { background: #f87171; }
.frame-dots span:nth-child(2) { background: #fbbf24; }
.frame-dots span:nth-child(3) { background: #4ade80; }

.frame-url-bar {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.frame-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  min-height: 380px;
}

.mock-form-area {
  padding: 28px;
  background: #ffffff;
  border-right: 1px solid var(--border);
}

.mock-sidepanel-area {
  padding: 24px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   Impact Comparison (Social Impact & Accessibility)
   ========================================================= */
.impact-section {
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
}

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

.impact-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.impact-card.before {
  background: #fff1f2;
  border-color: #fecdd3;
}

.impact-card.after {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.impact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.impact-card-title {
  font-size: 20px;
  font-weight: 800;
}

.impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

/* =========================================================
   Features Grid
   ========================================================= */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   Video Demo Section
   ========================================================= */
.video-section {
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  text-align: center;
}

.video-frame-container {
  max-width: 840px;
  margin: 32px auto 0;
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.video-placeholder-content {
  text-align: center;
  padding: 24px;
}

.play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-circle:hover {
  transform: scale(1.1);
}

/* =========================================================
   CTA Banner
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 60px 0;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--primary);
}

.footer-copy {
  font-size: 12.5px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 22px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-links {
    justify-content: center;
    gap: 14px;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-title { font-size: 32px; }
  .frame-content { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .nav-mobile-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    align-items: stretch;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-links li {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .nav-links .nav-link {
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }
  .nav-links .lang-select-nav {
    width: 100%;
    justify-content: center;
  }
  .nav-links .btn-nav-cta {
    width: 100%;
    text-align: center;
  }
}
