/* ============================================================
   PanoHopper — Main Stylesheet
   Light, modern, industrial. Red #ff0000 accents.
   ============================================================ */

/* --- Variables --- */
:root {
  --red:          #ff0000;
  --red-hover:    #cc0000;
  --red-light:    #fff5f5;

  --white:        #ffffff;
  --bg-light:     #f7fafc;
  --bg-gray:      #edf2f7;
  --border:       #e2e8f0;

  --text-dark:    #1a202c;
  --text-body:    #4a5568;
  --text-muted:   #718096;
  --text-light:   #a0aec0;

  --dark-bg:      #1a202c;
  --dark-bg-2:    #2d3748;

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    50px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);

  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width:    1160px;
  --header-h:     68px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

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

section { padding: 88px 0; }
section.compact { padding: 56px 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,0,0,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--text-dark);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--red-light);
  transform: translateY(-1px);
}

.btn-lg { padding: 17px 36px; font-size: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo img { height: 36px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s, background 0.15s;
}
.header-nav a:hover { color: var(--text-dark); background: var(--bg-light); }
.header-nav a.active { color: var(--red); font-weight: 600; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-switch a { padding: 3px 6px; border-radius: 4px; transition: color 0.15s, background 0.15s; }
.lang-switch a:hover { color: var(--text-dark); }
.lang-switch a.active { color: var(--red); }
.lang-switch span { color: var(--border); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #ffd5d5;
  border-radius: var(--radius-lg);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

.hero-content h1 { margin-bottom: 20px; }

.hero-content .lead {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg { color: var(--red); flex-shrink: 0; }

.hero-visual {
  position: relative;
}

.hero-screenshot {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.hero-screenshot-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
}
.hero-screenshot-placeholder .icon { font-size: 3rem; margin-bottom: 12px; }
.hero-screenshot-placeholder p { font-size: 0.9rem; }

/* ============================================================
   CAMERA BAR
   ============================================================ */
.camera-bar {
  padding: 32px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.camera-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.camera-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.camera-bar-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.camera-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.camera-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-body);
  transition: border-color 0.15s, color 0.15s;
}
.camera-tag:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: var(--white); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-content h2 { margin-bottom: 20px; }
.problem-content p { color: var(--text-body); margin-bottom: 16px; font-size: 1.05rem; line-height: 1.75; }

.pain-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--red);
}
.pain-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.pain-text { font-size: 0.92rem; color: var(--text-body); }
.pain-text strong { color: var(--text-dark); display: block; margin-bottom: 2px; }

.problem-visual {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 24px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--bg-light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--text-body); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red));
  opacity: 0.2;
}

.step {
  text-align: center;
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--text-body); line-height: 1.65; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--white); }

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

.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: #ffd5d5;
}

.feature-icon {
  width: 44px; height: 44px;
  background: var(--red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.feature-card h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-body); line-height: 1.65; }

/* ============================================================
   USE CASES
   ============================================================ */
.use-cases { background: var(--dark-bg); padding: 88px 0; }
.use-cases .section-label { color: #fc8181; }
.use-cases .section-header h2 { color: var(--white); }
.use-cases .section-header p { color: #a0aec0; }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.use-case-card {
  background: var(--dark-bg-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.use-case-card:hover { border-color: var(--red); transform: translateY(-3px); }

.use-case-icon { font-size: 2rem; margin-bottom: 14px; }
.use-case-card h3 { color: var(--white); margin-bottom: 8px; }
.use-case-card p { color: #a0aec0; font-size: 0.9rem; line-height: 1.65; }

.use-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.use-case-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  color: #cbd5e0;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social-proof { background: var(--bg-light); }

.social-proof .section-header { margin-bottom: 48px; }

/* World map */
.world-map-wrap {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 48px;
  overflow: hidden;
}

.world-map-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}


.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-body);
}
.map-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

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

.stat {
  text-align: center;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: var(--text-body); }

/* ============================================================
   PRICING TEASER
   ============================================================ */
.pricing-teaser { background: var(--white); }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255,0,0,0.07);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-lg);
  white-space: nowrap;
}

.pricing-card h3 { margin-bottom: 8px; color: var(--text-muted); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.price {
  margin: 16px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.price-currency { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); }
.price-amount { font-size: 3rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }

.pricing-features {
  text-align: left;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
}
.pricing-feature::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pricing-note a { color: var(--red); font-weight: 600; }
.pricing-note a:hover { text-decoration: underline; }

/* ============================================================
   FAQ SNIPPET
   ============================================================ */
.faq-snippet { background: var(--bg-light); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font);
  transition: color 0.15s;
}
.faq-question:hover { color: var(--red); }

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-cta {
  text-align: center;
  margin-top: 36px;
}
.faq-cta a { color: var(--red); font-weight: 600; font-size: 0.95rem; }
.faq-cta a:hover { text-decoration: underline; }

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.cta-band {
  background: var(--red);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 32px; }

.cta-band-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-bg);
  color: #a0aec0;
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: #a0aec0;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 0.82rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: #718096; transition: color 0.15s; }
.footer-legal a:hover { color: var(--white); }

.footer-lang { display: flex; gap: 12px; }
.footer-lang a { font-size: 0.8rem; font-weight: 600; color: #718096; transition: color 0.15s; }
.footer-lang a:hover { color: var(--white); }
.footer-lang a.active { color: var(--white); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-text {
  font-size: 0.85rem;
  color: #a0aec0;
  flex: 1;
  min-width: 240px;
}
.cookie-text a { color: var(--white); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: opacity 0.15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept { background: var(--red); color: var(--white); }
.cookie-btn-decline { background: rgba(255,255,255,0.1); color: #a0aec0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-visual { display: none; }

  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .features-grid { grid-template-columns: 1fr; }

  .use-cases-grid { grid-template-columns: 1fr; }

  .customer-logos { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }

  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .customer-logos { grid-template-columns: 1fr; }
}
