/* ================================================================
   RIAHN NETWORKS V4
   Product-first light design / logo pending / screenshot-ready
   ================================================================ */

:root{
  --v4-bg:#f5f8fb;
  --v4-bg-blue:#eff8fb;
  --v4-white:#ffffff;
  --v4-ink:#102235;
  --v4-muted:#627488;
  --v4-line:#dce6ed;
  --v4-line-strong:#c8d8e2;
  --v4-cyan:#0aa4c7;
  --v4-cyan-dark:#067e9f;
  --v4-cyan-soft:#e8f8fb;
  --v4-blue:#195f94;
  --v4-green:#2e9e90;
  --v4-shadow:0 20px 58px rgba(25,55,78,.08);
  --v4-shadow-soft:0 10px 32px rgba(25,55,78,.055);
}

/* 브랜드 로고 확정 전 텍스트 워드마크 */
.brand-wordmark{
  gap:5px!important;
  letter-spacing:-.04em;
}
.wordmark-riahn{
  color:var(--v4-ink);
  font-size:20px;
  font-weight:900;
}
.wordmark-networks{
  color:var(--v4-cyan-dark);
  font-size:12px;
  font-weight:850;
  letter-spacing:.04em;
  transform:translateY(2px);
}

/* header */
.site-header{
  background:rgba(255,255,255,.97);
  box-shadow:0 4px 24px rgba(29,55,76,.035);
}
.gnb-link{
  font-size:15px;
  font-weight:800;
}
.mega{
  padding:34px 0 40px;
}
.mega-card{
  position:relative;
  min-height:164px;
  padding:22px;
  border-radius:18px;
  overflow:hidden;
}
.mega-card::after{
  content:"";
  position:absolute;
  width:110px;height:110px;
  right:-48px;bottom:-55px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(10,164,199,.12),transparent 68%);
}
.mega-icon{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:13px;
  color:var(--v4-cyan-dark);
  background:var(--v4-cyan-soft);
  border:1px solid #d6edf2;
  margin-bottom:14px;
}
.mega-icon img{width:22px;height:22px}

/* icon cards */
.v4-icon{
  width:58px;height:58px;
  display:grid;place-items:center;
  border-radius:18px;
  color:var(--v4-cyan-dark);
  background:linear-gradient(145deg,#eefafd,#ffffff);
  border:1px solid #d6e9ef;
  box-shadow:0 10px 26px rgba(22,93,114,.055);
}
.v4-icon img{width:28px;height:28px}
.v4-icon.small{width:46px;height:46px;border-radius:14px}
.v4-icon.small img{width:22px;height:22px}

/* MAIN HERO */
.v4-hero{
  position:relative;
  overflow:hidden;
  min-height:760px;
  display:flex;
  align-items:center;
  background:
    radial-gradient(circle at 82% 18%,rgba(10,164,199,.13),transparent 28%),
    radial-gradient(circle at 95% 70%,rgba(25,95,148,.08),transparent 26%),
    linear-gradient(180deg,#fff 0%,#fbfdfe 100%);
}
.v4-hero::before{
  content:"";
  position:absolute;inset:0;
  opacity:.5;
  background-image:
    linear-gradient(rgba(16,34,53,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(16,34,53,.025) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(90deg,transparent 0%,black 50%,black 100%);
}
.v4-hero-grid{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:72px;
  align-items:center;
  padding:78px 0 90px;
}
.v4-hero-label{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:24px;
  color:var(--v4-cyan-dark);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
}
.v4-hero-label::before{
  content:"";
  width:32px;height:2px;
  background:var(--v4-cyan);
}
.v4-hero h1{
  margin:0 0 26px;
  color:var(--v4-ink);
  font-size:clamp(54px,6.6vw,88px);
  line-height:1.02;
  letter-spacing:-.067em;
}
.v4-hero h1 em{
  color:var(--v4-cyan-dark);
  font-style:normal;
}
.v4-hero p{
  max-width:660px;
  margin:0;
  color:var(--v4-muted);
  font-size:18px;
  line-height:1.9;
}
.v4-hero-actions{
  display:flex;flex-wrap:wrap;gap:11px;
  margin-top:32px;
}

/* hero technology map */
.hero-map{
  position:relative;
  min-height:560px;
  border:1px solid #dbe7ed;
  border-radius:34px;
  background:
    radial-gradient(circle at 50% 50%,rgba(10,164,199,.12),transparent 33%),
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,248,251,.94));
  box-shadow:var(--v4-shadow);
  overflow:hidden;
}
.hero-map::before{
  content:"";
  position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(10,164,199,.15) 1px,transparent 1px);
  background-size:22px 22px;
  opacity:.45;
}
.hero-hub{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  width:190px;height:190px;
  border-radius:50%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  background:#fff;
  border:1px solid #cde4eb;
  box-shadow:0 22px 55px rgba(22,83,105,.14);
  z-index:3;
}
.hero-hub b{
  font-size:22px;
  letter-spacing:-.04em;
}
.hero-hub span{
  color:var(--v4-cyan-dark);
  font-size:11px;
  font-weight:850;
  letter-spacing:.1em;
  margin-top:4px;
}
.hero-node{
  position:absolute;
  width:156px;
  padding:17px 15px;
  border:1px solid #d9e7ed;
  border-radius:17px;
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 30px rgba(24,59,80,.07);
  z-index:2;
}
.hero-node .v4-icon{margin-bottom:10px}
.hero-node b{display:block;font-size:13px}
.hero-node span{display:block;margin-top:3px;color:#7a8898;font-size:10px;line-height:1.4}
.hero-node.n1{left:7%;top:11%}
.hero-node.n2{right:7%;top:11%}
.hero-node.n3{left:5%;bottom:12%}
.hero-node.n4{right:5%;bottom:12%}
.hero-node.n5{left:50%;top:5%;transform:translateX(-50%)}
.hero-line{
  position:absolute;
  left:50%;top:50%;
  width:1px;height:185px;
  transform-origin:top center;
  background:linear-gradient(var(--v4-cyan),rgba(10,164,199,.05));
  opacity:.36;
}
.hero-line.l1{transform:rotate(-55deg)}
.hero-line.l2{transform:rotate(55deg)}
.hero-line.l3{transform:rotate(-125deg)}
.hero-line.l4{transform:rotate(125deg)}
.hero-line.l5{transform:rotate(180deg);height:170px}

/* section rhythm */
.v4-section{padding:126px 0}
.v4-section.soft{background:var(--v4-bg)}
.v4-section.blue{background:var(--v4-bg-blue)}
.v4-heading{
  display:grid;
  grid-template-columns:1fr .82fr;
  gap:70px;
  align-items:end;
  margin-bottom:52px;
}
.v4-heading h2{
  margin:10px 0 0;
  color:var(--v4-ink);
  font-size:clamp(38px,4.5vw,58px);
  line-height:1.12;
  letter-spacing:-.055em;
}
.v4-heading p{
  margin:0;
  color:var(--v4-muted);
  font-size:16px;
  line-height:1.85;
}
.v4-kicker{
  color:var(--v4-cyan-dark);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
}

/* Product showcase */
.feature-product{
  display:grid;
  grid-template-columns:1.13fr .87fr;
  min-height:480px;
  border:1px solid var(--v4-line);
  border-radius:30px;
  background:#fff;
  overflow:hidden;
  box-shadow:var(--v4-shadow-soft);
}
.feature-product + .product-duo{margin-top:22px}
.feature-product-media{
  position:relative;
  min-height:480px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:38px;
  background:
    radial-gradient(circle at 72% 22%,rgba(10,164,199,.10),transparent 28%),
    linear-gradient(145deg,#f7fbfd,#edf6f9);
}
.feature-product-media::before{
  content:"SYSTEM ARCHITECTURE";
  position:absolute;
  left:26px;top:22px;
  color:#7d96a3;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}
.feature-product-media img{
  width:100%;
  max-height:385px;
  object-fit:contain;
  filter:drop-shadow(0 10px 22px rgba(26,57,78,.08));
}
.feature-product-copy{
  padding:52px 48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.feature-product-copy .v4-icon{margin-bottom:22px}
.feature-product-copy .label{
  color:var(--v4-cyan-dark);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}
.feature-product-copy h3{
  margin:11px 0 14px;
  font-size:34px;
  line-height:1.25;
  letter-spacing:-.045em;
}
.feature-product-copy p{
  margin:0;
  color:var(--v4-muted);
  font-size:15px;
  line-height:1.8;
}
.product-bullets{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-top:22px;
}
.product-bullets span{
  padding:7px 10px;
  border-radius:999px;
  background:#f0f8fa;
  border:1px solid #d7eaef;
  color:#4f7180;
  font-size:10px;
  font-weight:850;
}
.product-duo{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}
.product-mini{
  overflow:hidden;
  border:1px solid var(--v4-line);
  border-radius:26px;
  background:#fff;
  box-shadow:var(--v4-shadow-soft);
}
.product-mini-media{
  height:285px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:linear-gradient(145deg,#f8fbfc,#edf6f9);
  border-bottom:1px solid var(--v4-line);
}
.product-mini-media img{
  width:100%;height:100%;object-fit:contain;
}
.product-mini-copy{padding:30px}
.product-mini-copy .v4-icon{margin-bottom:17px}
.product-mini-copy h3{
  margin:8px 0 10px;
  font-size:24px;
  letter-spacing:-.04em;
}
.product-mini-copy p{
  min-height:70px;
  margin:0;
  color:var(--v4-muted);
  font-size:13px;
}

/* service cards */
.v4-service-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
}
.v4-service-card{
  min-height:315px;
  padding:30px;
  border:1px solid var(--v4-line);
  border-radius:23px;
  background:#fff;
  box-shadow:0 8px 26px rgba(26,57,78,.035);
  transition:.22s ease;
}
.v4-service-card:hover{
  transform:translateY(-5px);
  border-color:#afd9e3;
  box-shadow:0 20px 46px rgba(26,57,78,.075);
}
.v4-service-card .v4-icon{margin-bottom:27px}
.v4-service-card .no{
  color:#a0acb8;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}
.v4-service-card h3{
  margin:10px 0 12px;
  font-size:21px;
  line-height:1.35;
  letter-spacing:-.035em;
}
.v4-service-card p{
  margin:0;
  color:var(--v4-muted);
  font-size:13px;
  line-height:1.75;
}

/* product listing */
.v4-product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.v4-product-card{
  display:flex;
  flex-direction:column;
  min-height:525px;
  border:1px solid var(--v4-line);
  border-radius:27px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--v4-shadow-soft);
  transition:.24s ease;
}
.v4-product-card:hover{
  transform:translateY(-6px);
  border-color:#b5dce4;
  box-shadow:var(--v4-shadow);
}
.v4-product-card .media{
  height:280px;
  padding:28px;
  display:flex;
  align-items:center;
  background:
    radial-gradient(circle at 78% 16%,rgba(10,164,199,.09),transparent 25%),
    linear-gradient(145deg,#f8fbfc,#eef6f9);
  border-bottom:1px solid var(--v4-line);
}
.v4-product-card .media img{
  width:100%;height:100%;object-fit:contain;
}
.v4-product-card .copy{
  padding:28px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.v4-product-card .copy .v4-icon{margin-bottom:17px}
.v4-product-card .product-type{
  color:var(--v4-cyan-dark);
  font-size:10px;font-weight:900;letter-spacing:.13em;
}
.v4-product-card h3{
  margin:7px 0 10px;
  font-size:24px;line-height:1.3;letter-spacing:-.04em;
}
.v4-product-card p{
  margin:0;
  color:var(--v4-muted);
  font-size:13px;line-height:1.75;
}
.v4-product-card .link-arrow{margin-top:auto;padding-top:18px}

/* next platform */
.next-platform{
  margin-top:24px;
  padding:36px 40px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:24px;
  align-items:center;
  border:1px solid #cfe4ea;
  border-radius:24px;
  background:
    radial-gradient(circle at 90% 20%,rgba(10,164,199,.12),transparent 25%),
    linear-gradient(120deg,#f8fdfe,#eef9fb);
}
.next-platform h3{margin:0 0 5px;font-size:22px}
.next-platform p{margin:0;color:var(--v4-muted);font-size:13px}

/* PRODUCT DETAIL HERO */
.product-hero-v4{
  position:relative;
  overflow:hidden;
  padding:92px 0 100px;
  background:
    radial-gradient(circle at 83% 20%,rgba(10,164,199,.13),transparent 29%),
    linear-gradient(180deg,#fff,#f9fcfd);
  border-bottom:1px solid var(--v4-line);
}
.product-hero-v4-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:70px;
  align-items:center;
}
.product-hero-v4 h1{
  margin:14px 0 20px;
  font-size:clamp(46px,5.7vw,70px);
  line-height:1.08;
  letter-spacing:-.06em;
}
.product-hero-v4 p{
  margin:0;
  color:var(--v4-muted);
  font-size:17px;
  line-height:1.85;
}
.product-hero-v4 .v4-icon{margin-bottom:20px}
.arch-hero{
  min-height:430px;
  padding:34px;
  display:flex;
  align-items:center;
  border:1px solid var(--v4-line);
  border-radius:29px;
  background:
    radial-gradient(circle at 80% 10%,rgba(10,164,199,.09),transparent 25%),
    #fff;
  box-shadow:var(--v4-shadow);
}
.arch-hero img{
  width:100%;
  max-height:375px;
  object-fit:contain;
}

/* Key benefits */
.key-benefits{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.key-benefit{
  min-height:218px;
  padding:27px;
  border:1px solid var(--v4-line);
  border-radius:21px;
  background:#fff;
}
.key-benefit .v4-icon{margin-bottom:20px}
.key-benefit h3{
  margin:0 0 9px;
  font-size:18px;
  letter-spacing:-.03em;
}
.key-benefit p{
  margin:0;
  color:var(--v4-muted);
  font-size:12px;
  line-height:1.75;
}

/* Architecture */
.diagram-panel{
  padding:34px;
  border:1px solid var(--v4-line);
  border-radius:30px;
  background:#fff;
  box-shadow:var(--v4-shadow-soft);
}
.diagram-panel img{
  width:100%;
  max-height:640px;
  object-fit:contain;
}

/* Screenshot-ready area */
.capture-stage{
  display:grid;
  grid-template-columns:1.55fr .9fr;
  gap:20px;
  align-items:stretch;
}
.capture-side{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:20px;
}
.capture-slot{
  margin:0;
  min-width:0;
}
.capture-placeholder{
  position:relative;
  min-height:250px;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  border:1px solid #cfdde5;
  border-radius:24px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.92),rgba(240,247,250,.96));
}
.capture-main .capture-placeholder{min-height:535px}
.capture-placeholder::before{
  content:"";
  position:absolute;inset:0;
  opacity:.38;
  background-image:
    linear-gradient(rgba(16,34,53,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(16,34,53,.045) 1px,transparent 1px);
  background-size:24px 24px;
}
.capture-placeholder .v4-icon{position:relative;z-index:1;margin-bottom:15px}
.capture-placeholder b{
  position:relative;z-index:1;
  color:#38546a;
  font-size:14px;
}
.capture-placeholder span{
  position:relative;z-index:1;
  margin-top:5px;
  color:#8b99a7;
  font-size:10px;
  letter-spacing:.08em;
}
.capture-slot figcaption{
  margin-top:10px;
  color:#637588;
  font-size:12px;
  font-weight:800;
}
.capture-note{
  margin-top:20px;
  padding:17px 20px;
  border-radius:14px;
  background:#f6fafb;
  border:1px solid var(--v4-line);
  color:#718190;
  font-size:12px;
}

/* Features */
.v4-feature-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
}
.v4-feature{
  min-height:245px;
  padding:28px;
  border:1px solid var(--v4-line);
  border-radius:21px;
  background:#fff;
  transition:.2s ease;
}
.v4-feature:hover{
  transform:translateY(-4px);
  box-shadow:var(--v4-shadow-soft);
}
.v4-feature .v4-icon{margin-bottom:20px}
.v4-feature h3{
  margin:0 0 9px;
  font-size:18px;letter-spacing:-.03em;
}
.v4-feature p{
  margin:0;color:var(--v4-muted);
  font-size:12px;line-height:1.75;
}

/* experience */
.v4-experience{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.v4-exp-card{
  padding:30px;
  border-top:2px solid var(--v4-cyan);
  background:#fff;
  box-shadow:0 9px 28px rgba(26,57,78,.035);
}
.v4-exp-card .v4-icon{margin-bottom:20px}
.v4-exp-card b{
  display:block;color:var(--v4-cyan-dark);
  font-size:10px;letter-spacing:.12em;
}
.v4-exp-card h3{
  margin:9px 0 8px;font-size:19px;letter-spacing:-.03em;
}
.v4-exp-card p{margin:0;color:var(--v4-muted);font-size:12px}

/* buttons refinement */
.btn{
  min-height:50px;
  padding-inline:21px;
}
.btn-primary{background:var(--v4-cyan-dark)}
.btn-primary:hover{background:#056c89}

/* footer */
.site-footer{
  background:#10283a;
}

/* RESPONSIVE */
@media(max-width:1100px){
  .v4-service-grid,.v4-feature-grid,.key-benefits{grid-template-columns:1fr 1fr}
}
@media(max-width:920px){
  .v4-hero{min-height:auto}
  .v4-hero-grid,
  .product-hero-v4-grid,
  .feature-product,
  .v4-heading{
    grid-template-columns:1fr;
  }
  .hero-map{min-height:540px}
  .feature-product-media{min-height:420px}
  .product-duo,.v4-product-grid{grid-template-columns:1fr}
  .capture-stage{grid-template-columns:1fr}
  .capture-main .capture-placeholder{min-height:420px}
  .next-platform{grid-template-columns:auto 1fr}
  .next-platform .btn{grid-column:1/-1;justify-self:start}
}
@media(max-width:650px){
  .v4-section{padding:82px 0}
  .v4-hero-grid{padding:60px 0 78px}
  .v4-hero h1{font-size:50px}
  .hero-map{min-height:500px}
  .hero-hub{width:145px;height:145px}
  .hero-node{width:122px;padding:12px}
  .hero-node .v4-icon{width:40px;height:40px;border-radius:12px}
  .hero-node .v4-icon img{width:20px;height:20px}
  .hero-node span{display:none}
  .feature-product-copy{padding:34px 28px}
  .product-duo,
  .v4-service-grid,
  .v4-feature-grid,
  .key-benefits,
  .v4-experience{
    grid-template-columns:1fr;
  }
  .feature-product-media{min-height:340px;padding:25px}
  .product-mini-media{height:230px}
  .capture-side{grid-template-rows:auto}
  .capture-placeholder,
  .capture-main .capture-placeholder{min-height:280px}
}

.product-screenshot{
  width:100%;
  height:100%;
  min-height:250px;
  object-fit:cover;
  display:block;
  border:1px solid #cfdde5;
  border-radius:24px;
  box-shadow:var(--v4-shadow-soft);
}
.capture-main .product-screenshot{min-height:535px}
