/* ── KLARIO Global Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1C2566;
  --navy-d: #111540;
  --teal:   #2BBFD4;
  --coral:  #E8524A;
  --amber:  #F5C032;
  --slate:  #4A5785;
  --light:  #F4F6FF;
  --white:  #FFFFFF;
  --font:   'Source Sans 3', sans-serif;
  --radius: 12px;
  --shadow-soft: 0 10px 36px rgba(27,42,107,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  padding-top: 64px;
}

img, iframe { max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(245,192,50,0.85);
  outline-offset: 3px;
}
.hidden-field { display: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(27,42,107,0.97);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; }
.nav-wordmark { font-size: 17px; font-weight: 700; letter-spacing: 0.25em; color: var(--white); }

.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.lang-toggle {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px; padding: 3px;
}

.lang-btn {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 700;
  font-family: var(--font); padding: 4px 8px; border-radius: 4px;
  transition: all 0.2s; letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--teal); color: var(--white); }

.btn-nav {
  background: var(--teal); color: var(--white);
  padding: 8px 18px; border-radius: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.btn-nav:hover { background: #1fa8bb; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white);
  padding: 13px 28px; border-radius: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #1fa8bb; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 13px 28px; border-radius: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--navy);
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 13px 28px; border-radius: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.btn-outline-white:hover { border-color: var(--teal); background: rgba(41,171,212,0.1); }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 2rem; }

.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.8rem,3.5vw,2.5rem); font-weight: 900; line-height: 1.15; margin-bottom: 0.9rem; }
.section-desc { font-size: 1.05rem; color: var(--slate); line-height: 1.8; max-width: 620px; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 64px);
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.07;
  background-image: linear-gradient(rgba(41,171,212,0.5) 1px,transparent 1px),linear-gradient(90deg,rgba(41,171,212,0.5) 1px,transparent 1px);
  background-size: 40px 40px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-glow-1 { width: 500px; height: 500px; background: rgba(41,171,212,0.18); top:-80px; right:-80px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(232,82,74,0.12); bottom:-60px; left:-80px; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-badge {
  display: inline-block; background: rgba(41,171,212,0.2); color: var(--teal);
  border: 1px solid rgba(41,171,212,0.4); padding: 6px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem,5vw,3.6rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 1.2rem; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--teal); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); font-weight: 300; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.hero-stat .num { font-size: 2rem; font-weight: 900; color: var(--teal); }
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

/* ── PRODUCT CARDS ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid #e2eaf6;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 10px 36px rgba(27,42,107,0.12); transform: translateY(-3px); }
.product-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.product-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-card .card-series { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }
.product-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.product-card .card-desc { font-size: 0.88rem; color: var(--slate); line-height: 1.55; flex: 1; }
.product-card .card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #f0f4fc; }
.product-card .price { font-size: 1.15rem; font-weight: 900; color: var(--navy); }
.product-card .price.free { color: var(--teal); }
.btn-buy {
  background: var(--navy); color: var(--white);
  padding: 8px 16px; border-radius: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.btn-buy:hover { background: var(--teal); }
.badge-free { background: #d1fae5; color: #065f46; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }

/* ── PLATFORM CARDS ── */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.2rem; }
.platform-card { background: var(--white); border: 1px solid #e2eaf6; border-radius: 14px; padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s; }
.platform-card:hover { box-shadow: 0 6px 24px rgba(27,42,107,0.1); transform: translateY(-2px); }
.platform-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 0.9rem; }
.platform-card .tagline { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.platform-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--navy); }
.platform-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.6; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.75rem; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; background: var(--light); color: var(--navy); }

/* ── CORAL DIVIDER ── */
.coral-divider { height: 4px; background: linear-gradient(90deg, var(--coral), var(--teal), var(--amber)); }

/* ── FOOTER ── */
footer { background: var(--navy-d); color: rgba(255,255,255,0.5); padding: 3rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.footer-brand .footer-logo img { height: 30px; width: auto; }
.footer-wordmark { font-size: 16px; font-weight: 700; letter-spacing: 0.25em; color: var(--white); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); letter-spacing: 0.05em; margin-bottom: 1rem; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--teal); }
.footer-bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.social-links a:hover { color: var(--teal); }

/* ── DARK SECTION ── */
.dark-section { background: var(--navy); }
.dark-section .section-title { color: var(--white); }
.dark-section .section-desc { color: rgba(255,255,255,0.65); }

/* ── PAGE HERO (subpages) ── */
.page-hero { background: var(--navy); padding: 4rem 2rem 3.5rem; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 580px; margin: 0 auto; font-weight: 300; }
.page-hero .hero-bg { position: absolute; inset: 0; opacity: 0.07; background-image: linear-gradient(rgba(41,171,212,0.5) 1px,transparent 1px),linear-gradient(90deg,rgba(41,171,212,0.5) 1px,transparent 1px); background-size: 40px 40px; z-index: 0; }
.page-hero-inner { position: relative; z-index: 1; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.about-photo { border-radius: 16px; overflow: hidden; background: var(--light); aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-credential { display: inline-flex; align-items: center; gap: 8px; background: var(--light); color: var(--navy); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin: 0 4px 8px 0; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 900px; margin: 0 auto; }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.contact-link { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 1rem; margin-bottom: 1rem; transition: color 0.2s; }
.contact-link:hover { color: var(--teal); }
.contact-icon { width: 36px; height: 36px; background: var(--light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  border: 1.5px solid #dde5f4; border-radius: 8px; padding: 12px 14px;
  font-family: var(--font); font-size: 15px; color: var(--navy);
  transition: border-color 0.2s; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.email-form input::placeholder { color: rgba(74,87,133,0.72); }

/* ── COMING SOON ── */
.coming-soon-box { background: var(--light); border-radius: 16px; padding: 3rem; text-align: center; max-width: 600px; margin: 0 auto; }
.coming-soon-box .cs-icon { font-size: 3rem; margin-bottom: 1rem; }
.coming-soon-box h2 { font-size: 1.8rem; font-weight: 900; color: var(--navy); margin-bottom: 0.75rem; }
.coming-soon-box p { color: var(--slate); margin-bottom: 2rem; line-height: 1.7; }
.email-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.email-form input { flex: 1; border: 1.5px solid #dde5f4; border-radius: 8px; padding: 12px 14px; font-family: var(--font); font-size: 14px; color: var(--navy); outline: none; }
.email-form input:focus { border-color: var(--teal); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: white; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px;
  transition: all 0.25s;
}
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body { padding-top: 60px; }
  nav { height: 60px; padding: 0 1rem; }
  section, .hero, .page-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .container { padding: 0; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(15,26,71,0.98);
    flex-direction: column; gap: 0; padding: 0.5rem 0;
    z-index: 99; list-style: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 0.85rem 1.5rem;
    font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .hero { min-height: auto; padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hero-badge { border-radius: 8px; line-height: 1.35; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline-white,
  .email-form .btn-primary { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; }
  .product-grid, .platform-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .nav-wordmark { letter-spacing: 0.18em; }
  .btn-nav { display: none; }
}

@media (max-width: 420px) {
  .lang-btn { padding: 4px 7px; }
  .nav-right { gap: 0.55rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr; }
  .btn-primary, .btn-outline, .btn-outline-white { width: 100%; justify-content: center; padding-left: 18px; padding-right: 18px; }
}
