/* =========================================================
   TOPEC AI POWERTECH — Corporate Website Stylesheet
   ========================================================= */

:root{
  --navy-900:#0A1F44;
  --navy-800:#0F2A57;
  --navy-700:#15346B;
  --blue-600:#1948D6;
  --blue-500:#3B82F6;
  --cyan-400:#5EE7FF;
  --cyan-300:#8FF3FF;
  --green-500:#1FAE59;
  --gray-900:#101828;
  --gray-700:#344054;
  --gray-600:#4B5565;
  --gray-400:#8B93A7;
  --gray-200:#E4E8F0;
  --gray-100:#F3F5F9;
  --bg-alt:#F7F9FC;
  --white:#FFFFFF;
  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:10px;
  --shadow-sm:0 2px 10px rgba(10,31,68,0.06);
  --shadow-md:0 12px 32px rgba(10,31,68,0.10);
  --shadow-lg:0 24px 60px rgba(10,31,68,0.16);
  --maxw:1180px;
  --font-kr:'Noto Sans KR','Pretendard','Malgun Gothic',sans-serif;
  --font-en:'Inter','Noto Sans KR',sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-en);
  color:var(--gray-900);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  word-break:keep-all;
}
h1,h2,h3,h4{ margin:0; line-height:1.3; letter-spacing:-0.01em; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }

.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}
.section{ padding:96px 0; }
.section-alt{ background:var(--bg-alt); }
.section-navy{ background:linear-gradient(135deg,var(--navy-900),var(--navy-700)); color:var(--white); }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.06em;
  color:var(--blue-600);
  text-transform:uppercase;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:18px; height:2px;
  background:var(--blue-600);
  display:inline-block;
}
.section-navy .eyebrow, .on-dark .eyebrow{ color:var(--cyan-300); }
.section-navy .eyebrow::before, .on-dark .eyebrow::before{ background:var(--cyan-300); }

.section-head{ max-width:720px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(26px,3.2vw,38px); font-weight:800; color:var(--navy-900); }
.section-navy .section-head h2{ color:var(--white); }
.section-head p{ margin-top:14px; font-size:16px; color:var(--gray-600); }
.section-navy .section-head p{ color:rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:linear-gradient(135deg,var(--blue-600),var(--blue-500)); color:var(--white); box-shadow:0 10px 24px rgba(25,72,214,0.28); }
.btn-primary:hover{ box-shadow:0 14px 30px rgba(25,72,214,0.36); }
.btn-outline{ background:transparent; border-color:rgba(10,31,68,0.18); color:var(--navy-900); }
.btn-outline:hover{ border-color:var(--blue-600); color:var(--blue-600); }
.btn-outline.on-dark{ border-color:rgba(255,255,255,0.35); color:var(--white); }
.btn-outline.on-dark:hover{ border-color:var(--cyan-300); color:var(--cyan-300); }
.btn-white{ background:var(--white); color:var(--navy-900); }
.btn-white:hover{ box-shadow:0 14px 30px rgba(0,0,0,0.18); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.86);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(10,31,68,0.06);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:78px;
}
.brand{ display:flex; align-items:center; gap:12px; font-weight:800; }
.brand-mark{ width:42px; height:42px; border-radius:11px; overflow:hidden; flex:none; }
.brand-mark img{ width:100%; height:100%; }
.brand-word{ display:flex; flex-direction:column; line-height:1.1; }
.brand-word .t1{ font-size:16px; letter-spacing:0.01em; color:var(--navy-900); font-weight:800; }
.brand-word .t1 .ai{ color:#1FAE59; }
.brand-word .t1 .pt{ color:var(--blue-600); }
.brand-word .t2{ font-size:10.5px; letter-spacing:0.14em; color:var(--gray-400); font-weight:700; margin-top:1px; }

.nav-desktop{ display:flex; align-items:center; gap:6px; }
.nav-desktop a{
  padding:10px 16px; border-radius:999px; font-size:15px; font-weight:600; color:var(--gray-700);
  transition:background .15s ease, color .15s ease;
}
.nav-desktop a:hover, .nav-desktop a.active{ background:var(--gray-100); color:var(--navy-900); }
.header-actions{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none; background:none; border:none; width:40px; height:40px; border-radius:10px;
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{ content:""; display:block; width:20px; height:2px; background:var(--navy-900); margin:4px auto; border-radius:2px; transition:.2s; }

.nav-mobile{
  display:none; flex-direction:column; gap:2px; background:var(--white);
  border-top:1px solid var(--gray-200); padding:10px 24px 18px;
}
.nav-mobile a{ padding:12px 4px; font-weight:600; color:var(--gray-700); border-bottom:1px solid var(--gray-100); }
.nav-mobile a.active{ color:var(--blue-600); }
.nav-mobile.open{ display:flex; }

@media (max-width:920px){
  .nav-desktop{ display:none; }
  .header-actions .btn-primary{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  background:radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,0.35), transparent 60%),
             linear-gradient(160deg,var(--navy-900) 0%, #0C2557 55%, var(--navy-700) 100%);
  color:var(--white);
  padding:120px 0 100px;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse at 70% 20%, black, transparent 72%);
  pointer-events:none;
}
.hero-inner{ position:relative; z-index:2; display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center; }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:999px;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.16);
  font-size:13px; font-weight:700; color:var(--cyan-300); margin-bottom:22px;
}
.hero-badge .dot{ width:7px; height:7px; border-radius:50%; background:var(--cyan-300); box-shadow:0 0 0 4px rgba(94,231,255,0.18); }
.hero h1{ font-size:clamp(34px,4.6vw,58px); font-weight:800; letter-spacing:-0.02em; }
.hero h1 em{ font-style:normal; background:linear-gradient(90deg,var(--cyan-300),var(--blue-500)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lead{ margin-top:22px; font-size:18px; color:rgba(255,255,255,0.78); max-width:560px; }
.hero-actions{ display:flex; gap:14px; margin-top:36px; flex-wrap:wrap; }

.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-visual .glow-card{
  position:relative; width:100%; max-width:400px; aspect-ratio:1/1;
  border-radius:32px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.14);
  backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 30px 80px rgba(0,0,0,0.35);
}
.hero-visual .glow-card img{ width:64%; filter:drop-shadow(0 20px 40px rgba(59,130,246,0.45)); animation:float 5s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }

.stat-strip{
  position:relative; z-index:2;
  margin-top:72px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.stat-item{ background:rgba(255,255,255,0.04); padding:24px 20px; text-align:center; }
.stat-item .num{ font-size:clamp(22px,2.6vw,32px); font-weight:800; color:var(--white); }
.stat-item .num span{ color:var(--cyan-300); }
.stat-item .label{ margin-top:6px; font-size:13px; color:rgba(255,255,255,0.62); }

@media (max-width:900px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .stat-strip{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- Cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:920px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr;} }

.card{
  background:var(--white);
  border:1px solid var(--gray-200);
  border-radius:var(--radius-md);
  padding:32px 28px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }
.card .icon-badge{
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--navy-900),var(--blue-600));
  color:var(--white); margin-bottom:20px;
}
.card h3{ font-size:19px; font-weight:800; color:var(--navy-900); }
.card p{ margin-top:10px; font-size:14.5px; color:var(--gray-600); }
.card .tag{
  display:inline-block; margin-bottom:14px; font-size:12px; font-weight:700; letter-spacing:.03em;
  color:var(--blue-600); background:rgba(25,72,214,0.08); padding:5px 12px; border-radius:999px;
}

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Problem strip ---------- */
.pill-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.pill{
  padding:10px 18px; border-radius:999px; background:var(--gray-100); font-size:13.5px; font-weight:600; color:var(--gray-700);
  border:1px solid var(--gray-200);
}
.pill b{ color:var(--blue-600); }

/* ---------- Timeline (roadmap) ---------- */
.timeline{ position:relative; padding-left:28px; border-left:2px solid var(--gray-200); }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-34px; top:2px; width:12px; height:12px; border-radius:50%;
  background:var(--blue-600); box-shadow:0 0 0 4px rgba(25,72,214,0.15);
}
.timeline-item .when{ font-size:13px; font-weight:800; color:var(--blue-600); letter-spacing:.02em; }
.timeline-item h4{ margin-top:6px; font-size:17px; font-weight:800; color:var(--navy-900); }
.timeline-item p{ margin-top:6px; font-size:14.5px; color:var(--gray-600); }

/* ---------- Table ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--gray-200); border-radius:var(--radius-md); }
table{ width:100%; border-collapse:collapse; min-width:520px; }
th,td{ padding:14px 18px; text-align:left; font-size:14.5px; border-bottom:1px solid var(--gray-200); }
thead th{ background:var(--navy-900); color:var(--white); font-weight:700; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:nth-child(even){ background:var(--bg-alt); }
td.num, th.num{ text-align:right; font-variant-numeric:tabular-nums; }

/* ---------- CEO section ---------- */
.ceo-block{ display:grid; grid-template-columns:320px 1fr; gap:48px; align-items:start; }
.ceo-photo{
  aspect-ratio:4/5; border-radius:var(--radius-lg); overflow:hidden;
  background:linear-gradient(160deg,var(--navy-900),var(--blue-600));
  display:flex; align-items:center; justify-content:center; position:relative;
  box-shadow:var(--shadow-lg);
}
.ceo-photo .initials{ font-size:96px; font-weight:800; color:rgba(255,255,255,0.92); letter-spacing:0.02em; }
.ceo-photo .ring{ position:absolute; inset:14px; border:1px solid rgba(255,255,255,0.25); border-radius:calc(var(--radius-lg) - 6px); }
.ceo-name{ font-size:15px; color:var(--gray-400); font-weight:700; }
.ceo-quote{
  font-size:clamp(19px,2.1vw,24px); font-weight:700; color:var(--navy-900); line-height:1.5; margin:14px 0 22px;
}
.ceo-quote::before{ content:"“"; color:var(--blue-500); }
.ceo-quote::after{ content:"”"; color:var(--blue-500); }
.ceo-bio-list{ margin-top:22px; display:grid; gap:10px; }
.ceo-bio-list li{ font-size:14.5px; color:var(--gray-700); padding-left:20px; position:relative; }
.ceo-bio-list li::before{ content:"—"; position:absolute; left:0; color:var(--blue-500); font-weight:700; }
@media (max-width:820px){ .ceo-block{ grid-template-columns:1fr; } .ceo-photo{ max-width:260px; } }

/* ---------- Company info table ---------- */
.info-grid{ display:grid; grid-template-columns:180px 1fr; gap:0; }
.info-grid .k{ padding:16px 0; font-weight:700; color:var(--gray-500); border-bottom:1px solid var(--gray-200); font-size:14.5px; }
.info-grid .v{ padding:16px 0; border-bottom:1px solid var(--gray-200); font-size:14.5px; color:var(--gray-900); }
@media (max-width:640px){ .info-grid{ grid-template-columns:1fr; } .info-grid .k{ padding-bottom:2px; border-bottom:none; } .info-grid .v{ padding-top:2px; } }

/* ---------- BM steps ---------- */
.bm-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset:bm; }
.bm-step{
  position:relative; background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  padding:32px 26px;
}
.bm-step .step-no{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding:0 20px; border-radius:999px;
  background:linear-gradient(135deg,var(--navy-900),var(--blue-600)); color:var(--white);
  font-weight:800; font-size:15px; letter-spacing:0.04em; white-space:nowrap; margin-bottom:20px;
}
.bm-step h3{ font-size:19px; font-weight:800; color:var(--navy-900); }
.bm-step .bm-name{ font-size:13px; font-weight:700; color:var(--blue-600); margin-top:4px; }
.bm-step ul{ margin-top:16px; display:grid; gap:8px; }
.bm-step ul li{ font-size:13.8px; color:var(--gray-600); padding-left:18px; position:relative; }
.bm-step ul li::before{ content:"✓"; position:absolute; left:0; color:var(--blue-500); font-weight:800; font-size:12px; top:1px; }
@media (max-width:920px){ .bm-steps{ grid-template-columns:1fr; } }

/* ---------- Org chart ---------- */
.org-top{ display:flex; justify-content:center; margin-bottom:24px; }
.org-card{
  background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-lg);
  padding:28px 26px; text-align:center;
}
.org-card-lead{ max-width:420px; border:2px solid var(--blue-500); box-shadow:var(--shadow-md); }
.org-photo{
  width:104px; height:104px; border-radius:50%; overflow:hidden; margin:0 auto 16px;
  box-shadow:var(--shadow-sm); border:3px solid var(--bg-alt);
}
.org-card-lead .org-photo{ width:128px; height:128px; }
.org-photo img{ width:100%; height:100%; object-fit:cover; }
.org-role{
  display:inline-block; padding:5px 14px; border-radius:999px; background:var(--navy-900); color:var(--white);
  font-size:12.5px; font-weight:700; letter-spacing:.02em; margin-bottom:8px;
}
.org-card-lead .org-role{ background:linear-gradient(135deg,var(--navy-900),var(--blue-600)); }
.org-name{ font-size:17px; font-weight:800; color:var(--navy-900); margin-bottom:14px; }
.org-card ul{ text-align:left; display:grid; gap:8px; }
.org-card ul li{ font-size:13.3px; color:var(--gray-600); padding-left:18px; position:relative; }
.org-card ul li::before{ content:"✓"; position:absolute; left:0; color:var(--blue-500); font-weight:800; font-size:11px; top:2px; }
.org-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:820px){ .org-grid{ grid-template-columns:1fr; } }

/* ---------- Location ---------- */
.map-frame{ width:100%; aspect-ratio:16/8; border:0; border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
.loc-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; margin-top:40px; }
.loc-card{ background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius-md); padding:26px; }
.loc-card h4{ font-size:15px; color:var(--navy-900); font-weight:800; margin-bottom:8px; }
.loc-card p, .loc-card a{ font-size:14.5px; color:var(--gray-600); }
.loc-card a.email{ color:var(--blue-600); font-weight:700; }
@media (max-width:900px){ .loc-grid{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-900); color:rgba(255,255,255,0.72); padding:64px 0 28px; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ width:40px; height:40px; }
.footer-brand .name{ color:var(--white); font-weight:800; font-size:16px; }
.footer-desc{ font-size:14px; max-width:340px; color:rgba(255,255,255,0.58); }
.footer-col h5{ color:var(--white); font-size:14px; font-weight:800; margin-bottom:16px; }
.footer-col ul{ display:grid; gap:10px; }
.footer-col a{ font-size:14px; color:rgba(255,255,255,0.6); transition:color .15s; }
.footer-col a:hover{ color:var(--cyan-300); }
.footer-bottom{ padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:12.5px; color:rgba(255,255,255,0.42); }
@media (max-width:820px){ .footer-top{ grid-template-columns:1fr; } }

/* ---------- Misc ---------- */
.divider{ height:1px; background:var(--gray-200); margin:56px 0; }
.center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; }
.note{ font-size:13px; color:var(--gray-400); }
.badge-soft{ display:inline-block; padding:4px 10px; border-radius:999px; background:rgba(25,72,214,0.08); color:var(--blue-600); font-size:12px; font-weight:700; }

.cta-band{
  border-radius:32px;
  background:linear-gradient(135deg,var(--navy-900),var(--blue-600));
  color:var(--white);
  padding:56px 48px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h3{ font-size:clamp(22px,2.6vw,28px); font-weight:800; }
.cta-band p{ margin-top:8px; color:rgba(255,255,255,0.75); font-size:15px; }
.cta-actions{ display:flex; gap:12px; flex-wrap:wrap; }
