/* Branding palette */
:root {
  --ink-black: #04080f;
  --glaucous: #507dbc;
  --powder-blue: #a1c6ea;
  --pale-sky: #bbd1ea;
  --alabaster-grey: #dae3e5;
  --bg-surface: #ffffff;
  --bg-muted: #f3f6fb;
  --border-soft: rgba(187, 209, 234, 0.7);
  --gradient-primary: linear-gradient(135deg, #507dbc 0%, #a1c6ea 100%);
  --gradient-accent: linear-gradient(160deg, rgba(80,125,188,0.9) 0%, rgba(161,198,234,0.85) 100%);
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at top left, #ffffff 0%, #f6f8fb 45%, #dae3e5 100%);
  color: var(--ink-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

section {
  position: relative;
  padding: 100px 0;
}

/* Navigation */
.navbar-custom {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(187, 209, 234, 0.4);
  transition: all 0.2s ease;
}

.navbar-brand img {
  height: 34px;
}

.navbar-nav .nav-link {
  color: #4b5563 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-image: var(--gradient-primary);
  transform: translateX(-50%);
  transition: width 0.2s ease-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--glaucous) !important;
}

.lang-toggle {
  min-width: 110px;
  border-radius: 999px;
  border: 1px solid rgba(187, 209, 234, 0.6);
  background: rgba(255, 255, 255, 0.9);
}

/* Hero */
.hero {
  padding: 160px 0 110px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90vw);
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(80px);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(187, 209, 234, 0.8);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5563;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-image: var(--gradient-primary);
}

.hero h1 {
  margin: 22px 0 12px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-lead {
  font-size: 1.08rem;
  color: #4b5563;
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #6b7280;
  font-size: 0.9rem;
}

.hero-meta span::before {
  content: '•';
  margin-right: 6px;
  color: var(--glaucous);
}

.hero-meta span:first-child::before {
  content: '';
  margin-right: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn-primary-erko,
.btn-ghost-erko {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary-erko {
  padding: 12px 26px;
  border: none;
  background-image: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 18px 45px rgba(80, 125, 188, 0.35);
}

.btn-primary-erko:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(80, 125, 188, 0.4);
}

.btn-ghost-erko {
  padding: 11px 22px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.85);
  color: #4b5563;
}

.btn-ghost-erko:hover {
  border-color: var(--glaucous);
  color: var(--glaucous);
}

.hero-visual {
  position: relative;
}

.device-stack {
  position: relative;
  width: min(320px, 90%);
  margin: 0 auto;
  aspect-ratio: 3 / 5;
}

.device-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.device-card--top {
  transform: translate(-28px, -20px) rotate(-6deg);
  background-image: var(--gradient-primary);
  color: #f9fbff;
}

.device-card--middle {
  transform: translate(18px, 18px) rotate(5deg);
  background: #ffffff;
}

.device-card--bottom {
  inset: 18px 12px 12px 28px;
  transform: rotate(-1deg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(187, 209, 234, 0.4);
}

.device-notch {
  width: 60px;
  height: 6px;
  background: rgba(4, 8, 15, 0.2);
  border-radius: 999px;
  margin: 0 auto 18px;
}

.device-lines {
  display: grid;
  gap: 10px;
}

.device-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.device-lines span:nth-child(2) {
  width: 70%;
  background: rgba(255, 255, 255, 0.7);
}

.device-lines span:nth-child(3) {
  width: 55%;
  background: rgba(255, 255, 255, 0.55);
}

.device-chart {
  margin-top: 18px;
  height: 90px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 6px;
}

.device-chart span {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.device-chart span:nth-child(odd) {
  height: 30px;
}

.device-chart span:nth-child(even) {
  height: 55px;
  background: rgba(187, 209, 234, 0.9);
}

.device-chip {
  position: absolute;
  bottom: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 8, 15, 0.85);
  color: #e5edf8;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.device-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
}

/* Highlight strip */
.highlight-strip {
  padding: 32px 0 0;
}

.highlight-grid {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(187, 209, 234, 0.5);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  padding: 26px 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-image: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(80, 125, 188, 0.25);
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.highlight-item h6 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.highlight-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Feature rows */
.feature-section {
  padding-top: 110px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 96px;
}

.feature-row:last-of-type {
  margin-bottom: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-copy {
  flex: 1;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-intro {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 1rem;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: #434a56;
}

.feature-points li::before {
  content: '✓';
  color: var(--glaucous);
  font-weight: 700;
  margin-top: 2px;
}

.feature-visual {
  flex: 1;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92) 0%, rgba(187, 209, 234, 0.35) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(187, 209, 234, 0.5);
  box-shadow: var(--shadow-soft);
  padding: 38px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.feature-visual svg {
  width: 100%;
  height: auto;
}

/* Process */
.process-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(211, 224, 239, 0.45) 100%);
  padding-top: 120px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.process-summary {
  margin-top: 16px;
  color: #4b5563;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.process-step {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  border: 1px solid rgba(187, 209, 234, 0.5);
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.process-step-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-image: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}

.process-step h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.process-step p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

/* About */
.about-section {
  padding-top: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.about-copy p {
  margin: 18px 0 0;
  color: #4b5563;
}

.about-meta {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.about-meta-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(187, 209, 234, 0.55);
  border-radius: 20px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-meta-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.about-meta-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background-image: var(--gradient-accent);
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.about-visual svg {
  width: 100%;
  height: auto;
  max-width: 320px;
}

/* Contact */
.contact-section {
  padding-top: 120px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(187, 209, 234, 0.55);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background-image: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(80, 125, 188, 0.3);
}

.icon-bubble svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.contact-card a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--glaucous);
}

.contact-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: #4b5563;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(187, 209, 234, 0.6);
  padding: 28px 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.footer a {
  color: var(--glaucous);
}

.footer a:hover {
  text-decoration: underline;
}

/* Animation helpers */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 48px;
  }
  .feature-row {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: 140px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    order: -1;
  }
  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }
  .feature-visual,
  .feature-copy {
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }
  .hero {
    padding: 120px 0 80px;
  }
  .hero-meta {
    gap: 8px 16px;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
