/* ElektroDesk - Main Stylesheet */
:root {
  --yellow: #EAB308;
  --yellow-dark: #CA8A04;
  --yellow-light: #FEF08A;
  --blue: #1E3A5F;
  --blue-mid: #2D5A8E;
  --blue-light: #EFF6FF;
  --dark: #111827;
  --gray: #374151;
  --gray-mid: #6B7280;
  --gray-light: #F9FAFB;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -2px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.10);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--blue);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--yellow-dark); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: .5rem;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s ease; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow); color: var(--blue);
  border-color: var(--yellow);
}
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--blue); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue); }
.btn-outline-blue {
  background: transparent; color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1.2rem; font-size: .9rem; }

/* Navigation */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.navbar-brand {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.4rem; font-weight: 800; color: var(--white);
  text-decoration: none;
}
.navbar-brand .logo-icon {
  width: 38px; height: 38px;
  background: var(--yellow); border-radius: .4rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.navbar-nav {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.navbar-nav a {
  color: rgba(255,255,255,.85); font-weight: 500;
  transition: color .2s;
}
.navbar-nav a:hover { color: var(--yellow); }
.navbar-actions { display: flex; gap: .75rem; align-items: center; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0F2440 60%, #1a3352 100%);
  color: var(--white); padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '⚡'; position: absolute; right: -3rem; top: -2rem;
  font-size: 20rem; opacity: .03; transform: rotate(-15deg);
  pointer-events: none;
}
.hero-content { max-width: 650px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(234,179,8,.15); color: var(--yellow);
  border: 1px solid rgba(234,179,8,.3);
  padding: .35rem 1rem; border-radius: 2rem;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--yellow); }
.hero-lead {
  font-size: 1.2rem; color: rgba(255,255,255,.8);
  margin-bottom: 2rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--yellow); display: block; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.65); }

/* Trust Bar */
.trust-bar {
  background: var(--gray-light); border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 500; color: var(--gray-mid);
}
.trust-icon { font-size: 1.1rem; }

/* Feature Grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; padding: 2rem;
  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(--blue-light); border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--gray-mid); margin-bottom: 0; }

/* Compliance Section */
.compliance-section { background: var(--blue); color: var(--white); }
.compliance-section h2, .compliance-section h3 { color: var(--white); }
.compliance-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.compliance-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .75rem; padding: 1.5rem; text-align: center;
}
.compliance-card .badge-num {
  font-size: 2.2rem; font-weight: 800; color: var(--yellow);
  display: block; margin-bottom: .25rem;
}
.compliance-card p { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; align-items: start;
}
.pricing-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 1rem; padding: 2rem; position: relative;
}
.pricing-card.popular {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(234,179,8,.1);
}
.popular-badge {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--yellow); color: var(--blue);
  font-size: .75rem; font-weight: 700; padding: .2rem .75rem;
  border-radius: 0 0 .5rem .5rem;
}
.pricing-name { font-size: .85rem; font-weight: 600; color: var(--gray-mid); text-transform: uppercase; letter-spacing: .05em; }
.pricing-price {
  font-size: 2.8rem; font-weight: 800; color: var(--blue);
  margin: .5rem 0;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-price span { font-size: 1rem; color: var(--gray-mid); font-weight: 400; }
.pricing-desc { color: var(--gray-mid); font-size: .9rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 1.75rem; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .4rem 0; font-size: .95rem; color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: #16A34A; flex-shrink: 0; margin-top: .1rem; }

/* Steps / Workflow */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; position: relative;
}
.step-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--yellow); color: var(--blue);
  border-radius: 50%; font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

/* Demo Preview */
.demo-preview {
  background: linear-gradient(135deg, #0F2440, #1E3A5F);
  border-radius: 1.25rem; padding: 2.5rem;
  color: var(--white); position: relative; overflow: hidden;
}
.demo-screen {
  background: #1a2744; border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.demo-titlebar {
  background: #0d1b2e; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28CA41; }
.demo-body { padding: 1.25rem; }
.demo-stat-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.demo-stat {
  background: #243354; border-radius: .5rem; padding: 1rem;
  flex: 1; min-width: 110px; text-align: center;
}
.demo-stat-val { font-size: 1.6rem; font-weight: 800; color: var(--yellow); }
.demo-stat-lbl { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: .15rem; }
.demo-table-row {
  display: flex; gap: 1rem; padding: .5rem .75rem;
  background: #1e2e45; border-radius: .4rem; margin-bottom: .35rem;
  font-size: .8rem; align-items: center;
}
.demo-table-row.header { background: #162337; color: rgba(255,255,255,.5); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.demo-badge {
  padding: .15rem .6rem; border-radius: 1rem; font-size: .7rem; font-weight: 600;
}
.badge-green { background: rgba(34,197,94,.2); color: #4ADE80; }
.badge-yellow { background: rgba(234,179,8,.2); color: var(--yellow); }
.badge-blue { background: rgba(59,130,246,.2); color: #93C5FD; }
.badge-red { background: rgba(239,68,68,.2); color: #FCA5A5; }

/* Testimonials */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; padding: 2rem;
}
.testimonial-text { font-style: italic; color: var(--gray); margin-bottom: 1.25rem; position: relative; }
.testimonial-text::before { content: '"'; font-size: 3rem; color: var(--yellow); line-height: 0; vertical-align: -.5rem; margin-right: .25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.author-name { font-weight: 600; color: var(--blue); }
.author-role { font-size: .85rem; color: var(--gray-mid); }
.stars { color: var(--yellow); font-size: .9rem; margin-bottom: .5rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.25rem 0; font-size: 1rem; font-weight: 600;
  color: var(--blue); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-question::after { content: '+'; font-size: 1.4rem; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  color: var(--gray-mid); transition: max-height .4s ease, padding .3s;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.25rem; }

/* CTA Section */
.cta-section {
  background: var(--yellow); text-align: center;
  padding: 5rem 0;
}
.cta-section h2 { color: var(--blue); }
.cta-section p { color: rgba(30,58,95,.7); font-size: 1.1rem; max-width: 600px; margin: 1rem auto 2rem; }

/* Footer */
footer {
  background: var(--dark); color: rgba(255,255,255,.65);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
footer h4 { color: var(--white); margin-bottom: 1rem; font-size: .95rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .5rem; }
footer ul a { color: rgba(255,255,255,.6); font-size: .9rem; }
footer ul a:hover { color: var(--yellow); }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem; text-align: center;
  font-size: .85rem; color: rgba(255,255,255,.4);
}

/* Section Headers */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--gray-mid); font-size: 1.05rem; }
.section-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  padding: .25rem .85rem; border-radius: 1rem;
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .75rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--gray-mid); }
.bg-light { background: var(--gray-light); }
.bg-blue { background: var(--blue); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-nav { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}
@media (max-width: 900px) { .nav-toggle { display: block; } }

/* Page-specific: Legal pages */
.legal-page { padding: 4rem 0; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--yellow); }
.legal-page p, .legal-page li { color: var(--gray); margin-bottom: .5rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
