/* i-Technika homepage — brand colors follow the existing logo (#38b6ff / #13547a) */
@font-face {
  font-family: "lovelo-black";
  src: url("../assets/fonts/lovelo_black.otf") format("opentype");
  font-display: swap;
}

:root {
  --primary: #38b6ff;
  --primary-light: #88d6ff;
  --primary-pale: #f0f8ff;
  --deep: #13547a;
  --navy: #0b2a3f;
  --ink: #16202a;
  --text: #4a5560;
  --muted: #7a858f;
  --line: #e3ecf3;
  --white: #ffffff;

  --font-title: "Montserrat", "Noto Sans KR", sans-serif;
  --font-body: "Open Sans", "Noto Sans KR", sans-serif;
  --font-logo: "lovelo-black", "Montserrat", sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(19, 84, 122, 0.08);
  --shadow-hover: 0 18px 40px rgba(19, 84, 122, 0.16);
  --container: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--ink); margin: 0; line-height: 1.3; }
p { margin: 0; }

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

/* ---------- Logo ---------- */
.logo {
  font-family: var(--font-logo);
  font-size: 26px;
  white-space: nowrap;
  color: var(--white);
}
.logo .tech { color: var(--primary); }
.logo--dark { color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.25s, box-shadow 0.25s;
}
.header.is-scrolled {
  background: rgba(11, 42, 63, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a.is-active { color: var(--white); background: rgba(56, 182, 255, 0.22); }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font: 600 12px var(--font-title);
  padding: 6px 12px;
  cursor: pointer;
}
.lang-toggle button.is-active { background: var(--primary); color: var(--white); }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  background: var(--white);
  content: "";
  transition: transform 0.2s;
}
.menu-btn span { top: 19px; }
.menu-btn span::before { top: -7px; left: 0; }
.menu-btn span::after { top: 7px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(56, 182, 255, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(56, 182, 255, 0.18), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font: 600 13px var(--font-title);
  letter-spacing: 0.12em;
  color: var(--primary-light);
  border: 1px solid rgba(136, 214, 255, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--primary); }
.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
}
.hero-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 15px var(--font-title);
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline { border-color: var(--primary); color: var(--deep); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--pale { background: var(--primary-pale); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-label {
  font: 700 13px var(--font-title);
  letter-spacing: 0.16em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; font-size: 17px; }

/* About pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pillar:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.pillar h3 { font-size: 22px; margin: 20px 0 10px; }

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--deep));
  color: var(--white);
}
.icon-box svg { width: 28px; height: 28px; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.product:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-top {
  padding: 36px 36px 28px;
  background: linear-gradient(135deg, var(--navy), var(--deep));
  color: var(--white);
  position: relative;
}
.product-top::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(56, 182, 255, 0.25);
}
.product-tag {
  display: inline-block;
  font: 600 12px var(--font-title);
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.product-top h3 { color: var(--white); font-size: 30px; letter-spacing: 0.02em; }
.product-top p { color: rgba(255, 255, 255, 0.8); margin-top: 6px; position: relative; z-index: 1; }
.product-body { padding: 28px 36px 36px; flex: 1; display: flex; flex-direction: column; }
.product-body > p { margin-bottom: 20px; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338b6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.product-body .btn { margin-top: auto; align-self: flex-start; }

/* Apps (소박앱스) — sobak-design Modern 라이트 스킨, 이 섹션만 (milestones.md D-16) */
.sobak {
  --s-bg: #F5F1E8;
  --s-surface: #FFFDF7;
  --s-muted: #F0EBDF;
  --s-line: #E3DDCF;
  --s-ink: #24221D;
  --s-ink2: #6A6458;
  --s-primary: #2E6A4F;
  --s-secondary: #E6EFE8;
  --s-on-secondary: #24563F;
  font-family: "IBM Plex Sans", "IBM Plex Sans KR", sans-serif;
  color: var(--s-ink2);
  background-color: var(--s-bg);
}
.sobak h2, .sobak h3, .sobak h4 { font-family: inherit; color: var(--s-ink); font-weight: 600; }
.sobak .section-label { font-family: inherit; font-weight: 600; color: var(--s-primary); }
.apps-banner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--s-surface);
  border: 1px solid var(--s-line);
  border-radius: 12px;
  padding: 48px;
}
.apps-banner h3 { font-size: 32px; margin-bottom: 6px; }
.apps-banner .alt { font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--s-primary); margin-bottom: 20px; }
.apps-banner p + p { margin-top: 12px; }
.btn-sobak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--s-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.btn-sobak:hover { background: var(--s-on-secondary); }
.btn-sobak:focus-visible { outline: 3px solid var(--s-on-secondary); outline-offset: 2px; }
.app-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--s-line); border-radius: 12px; overflow: hidden; }
.app-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; transition: background 0.2s; }
.app-item + .app-item { border-top: 1px solid var(--s-line); }
.app-item:hover { background: var(--s-muted); }
.app-icon { flex: none; width: 56px; height: 56px; }
.app-icon svg { display: block; width: 100%; height: 100%; }
.app-item h4 { font-size: 17px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-item p { font-size: 14px; }
.sobak .badge {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--s-on-secondary);
  background: var(--s-secondary);
  border: 0;
  border-radius: 12px;
  padding: 2px 10px;
}

.badge {
  font: 600 11px var(--font-title);
  font-style: normal;
  color: var(--deep);
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Hydroid flow */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font: 600 13px var(--font-title);
}
.flow span { padding: 6px 12px; border-radius: 999px; background: var(--primary-pale); color: var(--deep); }
.flow span.is-core { background: var(--primary); color: var(--white); }
.flow i { font-style: normal; color: var(--primary); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 340px; }
.contact-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item { display: flex; gap: 16px; }
.contact-item .icon-box { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.contact-item .icon-box svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-item a { color: var(--deep); font-weight: 600; }
.contact-item a:hover { color: var(--primary); }
.contact-info .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.65); padding: 64px 0 40px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--primary); }
.footer-company { display: flex; flex-direction: column; gap: 4px; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Sub page (U4) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 72px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%);
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); }
.page-hero p { color: rgba(255, 255, 255, 0.8); margin-top: 16px; max-width: 720px; font-size: 18px; }
.page-hero .page-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.page-hero .page-status .badge { font-size: 12px; }
.breadcrumb { font-size: 14px; color: var(--primary-light); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--white); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 36px 32px;
  background: var(--white);
}
.plan.is-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-hover); }
.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan .plan-for { color: var(--primary); font: 600 13px var(--font-title); margin-bottom: 16px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow); }
.feature-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
.feature-table th,
.feature-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.feature-table th:first-child,
.feature-table td:first-child { text-align: left; }
.feature-table thead th { background: var(--deep); color: var(--white); font: 600 14px var(--font-title); }
.feature-table tbody tr:hover { background: var(--primary-pale); }
.feature-table .yes { color: var(--primary); font-weight: 700; }
.feature-table .no { color: #c3cbd2; }

.cta-band {
  margin-top: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--deep));
  color: var(--white);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { color: var(--white); font-size: 26px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.cta-band .btn { background: var(--white); color: var(--deep); text-align: center; justify-content: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pillars, .plans { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .apps-banner { grid-template-columns: 1fr; padding: 40px 28px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .lang-toggle { margin-left: auto; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 12px 24px 24px;
    gap: 0;
    transform: translateY(-120%);
    transition: transform 0.25s;
    z-index: -1;
  }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .header.is-open { background: var(--navy); }
  .header.is-open .nav { transform: none; }
  .header.is-open .menu-btn span { background: transparent; }
  .header.is-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
  .header.is-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
  .logo { font-size: 20px; }
  .section { padding: 80px 0; }
  .product-top, .product-body { padding-left: 28px; padding-right: 28px; }
  .contact-info { padding: 28px; }
  .cta-band { padding: 32px 28px; }
  .apps-banner { padding: 28px 20px; gap: 28px; }
  .app-item { align-items: flex-start; padding: 16px; gap: 14px; }
  .app-icon { width: 48px; height: 48px; }
}
