/* =====================================================
   Kaltiot — Physical AI as a Service
   Brand Colors:
     Primary Blue:   #2ea3f2
     Primary Dark:   #1a7ac4
     Teal Accent:    #29c4a9
     Dark Navy:      #0d1b2a
     Dark Secondary: #112233
     Text:           #2d3940
     Light Gray:     #f5f7fa
   Fonts: Montserrat (headings), Open Sans (body)
===================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2ea3f2;
  --primary-dark: #1a7ac4;
  --primary-deeper: #0e5a9e;
  --accent: #29c4a9;
  --accent-dark: #1da88f;
  --dark: #0d1b2a;
  --dark-2: #112233;
  --dark-3: #1a2d3f;
  --text: #2d3940;
  --text-light: #5a6a72;
  --text-muted: #8a9ba3;
  --white: #ffffff;
  --light: #f5f7fa;
  --light-2: #eef1f5;
  --border: rgba(46, 163, 242, 0.15);
  --border-dark: rgba(255,255,255,0.08);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(13,27,42,0.10);
  --shadow-lg: 0 12px 48px rgba(13,27,42,0.18);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46,163,242,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.btn-full {
  width: 100%;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-header.scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border-dark);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-kaltiot {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-kaltiot::after {
  content: '.';
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* ── DROPDOWN NAV ──────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.6rem;
  opacity: 0.7;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(13,27,42,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 200;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.nav-dropdown .dropdown-menu li {
  position: relative;
}

.nav-dropdown .dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  border-radius: 0;
  background: none;
}

.nav-dropdown .dropdown-menu li a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-dropdown .dropdown-menu li.has-submenu > a::after {
  content: ' ›';
  float: right;
  margin-left: 8px;
}

.nav-dropdown .dropdown-menu li .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -8px;
  background: rgba(13,27,42,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 201;
  list-style: none;
}

.nav-dropdown .dropdown-menu li:hover > .submenu {
  display: block;
}

.nav-dropdown .dropdown-menu li .submenu li a {
  padding: 8px 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,163,242,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,163,242,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(46,163,242,0.08) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(41,196,169,0.3);
  background: rgba(41,196,169,0.07);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.62);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Hero Diagram */
.hero-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin-bottom: 60px;
}

.hero-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(46,163,242,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 120px;
  transition: border-color var(--transition), background var(--transition);
}

.diagram-node:hover {
  border-color: var(--primary);
  background: rgba(46,163,242,0.08);
}

.node-icon {
  font-size: 1.4rem;
  color: var(--primary);
}

.node-ai .node-icon { color: var(--accent); }

.diagram-node span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: center;
  letter-spacing: 0.02em;
}

.diagram-arrow {
  font-size: 1.2rem;
  color: rgba(46,163,242,0.4);
  flex-shrink: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(46,163,242,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== POSITION STATEMENT ===== */
.position-statement {
  padding: 100px 0;
  background: var(--white);
}

.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.statement-left .statement-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.statement-left .statement-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  position: sticky;
  top: 100px;
}

.statement-body {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 24px;
}

.statement-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--light-2);
}

.pillar {
  padding: 24px 0;
  border-bottom: 1px solid var(--light-2);
}

.pillar-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46,163,242,0.2);
}

.service-card--featured {
  background: var(--dark);
  border-color: transparent;
  color: var(--white);
}

.service-card--featured h3,
.service-card--featured p {
  color: rgba(255,255,255,0.9);
}

.service-card--featured .service-features li {
  border-bottom-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
}

.service-card--featured .service-features li::before {
  background: var(--accent);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.service-card--featured .service-icon {
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-features {
  margin-top: auto;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 8px 0;
  border-bottom: 1px solid var(--light-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===== USE CASES ===== */
.use-cases {
  padding: 100px 0;
  background: var(--white);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  border: 1px solid var(--light-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.use-case-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.use-case-card:hover::before {
  opacity: 1;
}

.use-case-industry {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.use-case-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.use-case-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.use-case-outcome {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--light);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.outcome-label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--dark);
}

.how-it-works .section-tag {
  color: var(--accent);
}

.how-it-works .section-title {
  color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  opacity: 0.25;
}

.step {
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  background: var(--dark);
  z-index: 1;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ===== WHY KALTIOT ===== */
.why-kaltiot {
  padding: 100px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

.why-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 32px;
  position: sticky;
  top: 100px;
}

.why-left .btn {
  display: block;
  width: fit-content;
  position: sticky;
  top: 220px;
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--light-2);
}

.why-item:last-child {
  border-bottom: none;
}

.why-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.why-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== STATS BAND ===== */
.stats-band {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--dark-3) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-body {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-detail a,
.contact-detail span {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--primary);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--light);
  border: 1.5px solid var(--light-2);
  border-radius: var(--radius);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,163,242,0.12);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 72px 0 32px;
  color: rgba(255,255,255,0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo::after {
  content: '.';
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.3);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .statement-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .statement-left .statement-title,
  .why-left h2 {
    position: static;
  }

  .why-left .btn {
    position: static;
    margin-bottom: 40px;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before { display: none; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: rgba(13,27,42,0.98);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: flex; }

  /* Mobile dropdowns: always visible, indented */
  .nav-dropdown .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 14px;
    min-width: unset;
  }

  .nav-dropdown > a::after {
    display: none;
  }

  .nav-dropdown .dropdown-menu li .submenu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 14px;
    min-width: unset;
  }

  .nav-dropdown .dropdown-menu li.has-submenu > a::after {
    display: none;
  }

  .services-grid,
  .use-cases-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== LOGO IMAGE IN NAV ===== */
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 12px;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55) !important;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 5px 10px !important;
  background: transparent !important;
  transition: all var(--transition);
}

.lang-toggle:hover {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.5) !important;
  background: rgba(255,255,255,0.06) !important;
}

.nav-active {
  color: var(--white) !important;
}

/* ===== CONTENT PAGES (teknologia, blog, tuote, etc.) ===== */
.page-hero {
  padding: 120px 0 60px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,163,242,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,163,242,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 760px;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.65;
}

/* Article / content layout */
.page-content {
  padding: 72px 0 96px;
  background: var(--white);
}

.page-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 16px;
  line-height: 1.2;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 6px;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--primary-dark); }

.article-body .highlight-box {
  background: var(--light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-body .highlight-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* Sidebar */
.page-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--light);
  border: 1px solid var(--light-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.sidebar-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.sidebar-cta {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: block;
  transition: background var(--transition), transform var(--transition);
}

.sidebar-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.sidebar-links {
  list-style: none !important;
  padding: 0 !important;
}

.sidebar-links li { margin-bottom: 8px !important; }

.sidebar-links a {
  font-size: 0.875rem !important;
  color: var(--primary) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-links a:hover { color: var(--primary-dark) !important; }

/* Product card */
.product-specs {
  border: 1px solid var(--light-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 32px 0;
}

.product-specs table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs td {
  padding: 10px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--light-2);
}

.product-specs td:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  width: 40%;
  background: var(--light);
}

.product-specs tr:last-child td { border-bottom: none; }

/* Blog card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border: 1px solid var(--light-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-category {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.blog-card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.blog-card-link:hover { color: var(--accent); }

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--primary); }

.blog-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Form status */
.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-status--ok {
  background: rgba(41,196,169,0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(41,196,169,0.3);
}

.form-status--err {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.2);
}

@media (max-width: 1024px) {
  .page-content-grid {
    grid-template-columns: 1fr;
  }
  .page-sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── DEVICE / PRODUCT CARDS ────────────────────────────────── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.device-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}

.device-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.device-card-img {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  height: 180px;
}

.device-card-img img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  display: block;
}

.device-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.device-card-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.device-card-body h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.device-card-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── PRODUCT PAGE IMAGE ─────────────────────────────────────── */
.product-hero-img {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.product-hero-img img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

/* ── CONTENT IMAGE ──────────────────────────────────────────── */
.content-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
}

.content-img img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .device-card-img { height: 140px; }
}

