/* ═══════════════════════════════════════════
   TrailEyes.ai — Main Stylesheet
   ASP.NET compatible, no frameworks needed
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
  background: #fafaf7;
}
a { color: #2a7a38; text-decoration:none; transition:color .2s; }
a:hover { color: #1d5c28; }
img { max-width:100%; height:auto; display:block; }
ul { list-style:none; }

/* ── CSS Variables ── */
:root {
  --green: #2a7a38;
  --green-dk: #1d5c28;
  --green-lt: #e8f5e9;
  --blue: #1b3d5f;
  --blue-lt: #e3edf5;
  --orange: #e27420;
  --orange-lt: #fff3e6;
  --dark: #1a1a1a;
  --gray: #6b6b6b;
  --gray-lt: #f5f3ef;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-w: 1140px;
}

/* ── Typography ── */
h1,h2,h3,h4 { font-weight:700; line-height:1.25; color:var(--dark); }
h1 { font-size:2.5rem; }
h2 { font-size:1.85rem; }
h3 { font-size:1.35rem; }
h4 { font-size:1.1rem; }
p { margin-bottom:1rem; }

/* ── Layout ── */
.container { max-width:var(--max-w); margin:0 auto; padding:0 24px; }
.section { padding:64px 0; }
.section-alt { background:var(--gray-lt); }
.section-green { background:var(--green-lt); }
.section-dark { background:var(--blue); color:white; }
.section-dark h2,.section-dark h3,.section-dark h4,.section-dark p { color:white; }
.text-center { text-align:center; }
.text-green { color:var(--green); }
.text-orange { color:var(--orange); }
.text-blue { color:var(--blue); }

/* ── Header / Nav ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e8e4dc;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 10px;
  text-align: center;
  line-height: 1;
  border: 2px solid var(--orange);
}
.nav-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}
.nav-logo-text span { color: var(--green); }
.nav-logo-ai {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  border-bottom: none !important;
  font-size: 14px !important;
}
.nav-cta:hover { background: var(--green-dk) !important; }

/* Mobile nav toggle */
.nav-toggle { display:none; cursor:pointer; background:none; border:none; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background:var(--dark); margin:5px 0; transition:all .3s; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1b3d5f 0%, #2a5a3a 50%, #1d6b28 100%);
  color: white;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(42,122,56,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(27,61,95,0.4) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero h1 span { color: var(--yellow, #f5c518); }
.hero p {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-grid {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 380px;
}
.hero-phone {
  width: 240px;
  height: 420px;
  background: #111;
  border-radius: 32px;
  border: 4px solid #333;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-phone-screen {
  width: 92%;
  height: 94%;
  background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 30%, #a5d6a7 60%, #81c784 100%);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}
.hero-phone-screen .app-icon {
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1.1;
  border: 2px solid var(--orange);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-phone-screen .app-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dk);
}
.hero-phone-screen .app-tag {
  font-size: 11px;
  color: #555;
  text-align: center;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background:var(--green); color:white; }
.btn-primary:hover { background:var(--green-dk); color:white; }
.btn-outline { background:transparent; color:white; border:2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color:white; color:white; }
.btn-orange { background:var(--orange); color:white; }
.btn-orange:hover { background:#c96218; color:white; }
.btn-group { display:flex; gap:12px; flex-wrap:wrap; }

/* ── Cards / Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--green-lt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}
.feature-card h3 { margin-bottom:8px; }
.feature-card p { font-size:14px; color:var(--gray); margin-bottom:0; }

/* ── Two-Column Layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.two-col-img img { width:100%; height:auto; }
.placeholder-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7, #81c784);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0,0,0,0.3);
  font-weight: 600;
}

/* ── Timeline / History ── */
.timeline { position:relative; padding-left:32px; }
.timeline::before { content:''; position:absolute; left:11px; top:0; bottom:0; width:2px; background:var(--green); opacity:.3; }
.timeline-item { position:relative; margin-bottom:28px; }
.timeline-item::before { content:''; position:absolute; left:-32px; top:6px; width:12px; height:12px; background:var(--green); border-radius:50%; border:2px solid var(--white); box-shadow:0 0 0 3px rgba(42,122,56,0.2); }
.timeline-item h4 { color:var(--green); margin-bottom:4px; }
.timeline-item p { font-size:14px; color:var(--gray); margin-bottom:0; }

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat-item { text-align:center; }
.stat-number { font-size:2.5rem; font-weight:700; color:var(--orange); }
.stat-label { font-size:14px; color:var(--gray); margin-top:4px; }
.section-dark .stat-number { color:var(--yellow, #f5c518); }
.section-dark .stat-label { color:rgba(255,255,255,0.7); }

/* ── Contact Form ── */
.contact-form {
  max-width: 540px;
  margin: 0 auto;
}
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:14px; font-weight:600; margin-bottom:4px; color:var(--dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d5d0c5;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,122,56,0.1);
}
.form-group textarea { min-height:120px; resize:vertical; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .nav-logo-text { color:white; }
.footer-brand p { font-size:14px; margin-top:8px; color:rgba(255,255,255,0.5); }
.footer-col h4 { color:white; font-size:14px; margin-bottom:12px; text-transform:uppercase; letter-spacing:1px; }
.footer-col a { display:block; font-size:14px; color:rgba(255,255,255,0.6); margin-bottom:8px; }
.footer-col a:hover { color:white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Countdown (App page) ── */
.countdown {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 28px 0;
}
.cd-item { text-align:center; }
.cd-num {
  display: block;
  width: 72px;
  height: 72px;
  line-height: 72px;
  background: var(--white);
  border-radius: 12px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  box-shadow: var(--shadow);
}
.cd-label { font-size:12px; color:var(--gray); margin-top:4px; text-transform:uppercase; letter-spacing:1px; }

/* ── Privacy page ── */
.legal-content h2 { margin-top:32px; margin-bottom:12px; font-size:1.5rem; }
.legal-content h3 { margin-top:24px; margin-bottom:8px; font-size:1.2rem; color:var(--green); }
.legal-content ul { margin-left:24px; margin-bottom:16px; }
.legal-content ul li { list-style:disc; margin-bottom:6px; font-size:15px; color:var(--gray); }
.legal-content p { color:var(--gray); font-size:15px; }

/* ── Responsive ── */
@media (max-width:900px) {
  .hero-grid { flex-direction:column; text-align:center; }
  .hero-visual { flex:auto; }
  .hero-content { max-width:100%; }
  .hero h1 { font-size:2.2rem; }
  .btn-group { justify-content:center; }
  .features-grid { grid-template-columns:1fr; }
  .two-col { grid-template-columns:1fr; gap:28px; }
  .stats-bar { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width:640px) {
  h1 { font-size:1.8rem; }
  h2 { font-size:1.5rem; }
  .nav-links { display:none; position:absolute; top:68px; left:0; right:0; background:white; flex-direction:column; padding:20px; gap:16px; box-shadow:var(--shadow-lg); border-top:1px solid #eee; }
  .nav-links.open { display:flex; }
  .nav-toggle { display:block; }
  .hero { padding:48px 0 40px; }
  .section { padding:40px 0; }
  .countdown { gap:10px; }
  .cd-num { width:56px; height:56px; line-height:56px; font-size:1.5rem; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .stats-bar { grid-template-columns:1fr 1fr; }
}
