/* YSAP Power — premium redesign v2.
   Direction: international flagship look (Apple/Tesla/EcoFlow reference).
   Deep navy canvas + amber energy accent, oversized display type,
   generous whitespace, scroll-reveal micro-motion. */
:root {
  --navy: #12233d;
  --navy-deep: #0a1428;
  --navy2: #1d3a5f;
  --ink: #1c2836;
  --muted: #5b6b7d;
  --line: #e3e9f0;
  --bg: #ffffff;
  --tint: #f4f7fa;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --ok: #15803d;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(10, 22, 42, .12);
  --shadow-soft: 0 8px 24px rgba(10, 22, 42, .08);
  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; font-weight: 700; }
.section { padding: 104px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy-deep); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-sub { color: #9fb2c8; }
.section-sub { color: var(--muted); max-width: 760px; margin-bottom: 48px; font-size: 17px; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.kicker { letter-spacing: .22em; font-size: 12px; color: var(--accent-dark); font-weight: 700; margin-bottom: 14px; }
.kicker-amber { color: var(--accent); }
.section-dark .kicker { color: var(--accent); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--navy); }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--navy-deep); color: var(--accent); display: grid; place-items: center; font-size: 18px; }
.brand-text { font-size: 16px; letter-spacing: .05em; }
.brand-text strong { color: var(--accent-dark); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .18s ease; }
.nav a:hover::after { width: 100%; }
.bar-right { display: flex; align-items: center; gap: 10px; }
#langSel { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; }

/* Buttons */
.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; letter-spacing: .01em; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(245,158,11,.35); }
.btn-main:hover { background: var(--accent-dark); box-shadow: 0 12px 30px rgba(245,158,11,.45); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid rgba(18,35,61,.35); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-wa { background: #25d366; color: #fff; }
.section-dark .btn-ghost { color: #dbe6f2; border-color: rgba(219,230,242,.4); }
.section-dark .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 64px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(245,158,11,.16), transparent 60%),
    radial-gradient(1100px 620px at -10% 10%, rgba(45,90,150,.35), transparent 62%),
    linear-gradient(168deg, #0d1c33 0%, var(--navy-deep) 58%, #060d1b 100%);
  color: #e8eef6;
  overflow: hidden;
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 260px at 70% 78%, rgba(245,158,11,.10), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .kicker { color: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 10px 0 18px; color: #fff; font-weight: 700; letter-spacing: -0.02em; }
.hero-sub { color: #a9bdd3; font-size: 18px; max-width: 560px; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero-img img { width: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.10); }
.badges { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.badges li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 16px; font-size: 13px; color: #cfdcec; font-weight: 600; backdrop-filter: blur(4px); }

/* Trust band */
.statband {
  position: relative;
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.statband-item { padding: 26px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.statband-item:first-child { border-left: 0; }
.statband-n { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: #fff; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.statband-l { font-size: 12.5px; color: #8fa3ba; margin-top: 6px; letter-spacing: .04em; }
.certs { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 22px 0 6px; }
.cert { border: 1px solid rgba(255,255,255,.18); color: #b8c8db; border-radius: 8px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.certs-note { font-size: 12.5px; color: #7e93ab; margin-left: 6px; }

/* PRO features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.feat:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); border-color: rgba(245,158,11,.4); }
.feat h3 { font-size: 17px; margin: 12px 0 8px; }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(245,158,11,.14); color: var(--accent); display: grid; place-items: center; font-size: 20px; }
.feat p { font-size: 14px; color: #9fb2c8; line-height: 1.65; }
.section-dark .fine { color: #7e93ab; }

/* Products */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.prod-card img { width: 100%; height: 240px; object-fit: cover; background: #fff; transition: transform .4s ease; }
.prod-card:hover img { transform: scale(1.03); }
.prod-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h3 { font-size: 20px; }
.prod-tag { font-size: 13.5px; color: var(--accent-dark); font-weight: 600; }
.prod-specs { font-size: 13px; color: var(--muted); }
.prod-from { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); }
.prod-from strong { font-size: 24px; color: var(--navy); letter-spacing: -0.01em; }
.prod-actions { display: flex; gap: 8px; }
.prod-actions .btn { padding: 10px 18px; font-size: 13.5px; }

/* Freight */
.freight-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft); }
.freight-form { display: grid; grid-template-columns: 1.2fr .6fr 1fr .8fr auto; gap: 14px; align-items: end; }
.freight-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.freight-form select, .freight-form input, .inquiry-form select, .inquiry-form input, .inquiry-form textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.freight-form select:focus, .freight-form input:focus, .inquiry-form select:focus, .inquiry-form input:focus, .inquiry-form textarea:focus {
  outline: 2px solid rgba(245,158,11,.45); outline-offset: 1px; border-color: var(--accent);
}
.freight-out { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--tint); border-radius: 10px; padding: 14px; }
.stat .lab { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .val { font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.stat .sub { font-size: 12px; color: var(--muted); }
.warn { margin-top: 14px; background: #fef3c7; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }

/* Process */
.process-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.process-step:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.process-n { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent-dark); }
.process-step h3 { font-size: 18px; margin: 10px 0 8px; }
.process-step p { font-size: 14px; color: var(--muted); }

/* Company */
.company-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.company-copy p { color: var(--muted); margin-bottom: 14px; }
.addr { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-top: 12px; }
.addr h3 { font-size: 14px; margin-bottom: 4px; }
.addr p { font-size: 13.5px; color: var(--muted); margin: 0; }
.company-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.company-photos figure:first-child { grid-column: 1 / -1; }
.company-photos img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; display: block; }
.company-photos figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Inquiry */
.inquiry-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.inquiry-copy p { color: #9fb2c8; margin-bottom: 18px; }
.contact-lines { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mail-direct { color: #dbe6f2; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(219,230,242,.35); padding-bottom: 2px; }
.mail-direct:hover { color: #fff; border-color: #fff; }
.inquiry-form { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.inquiry-form .l-half { grid-column: span 1; }
.inquiry-form .l-full { grid-column: 1 / -1; }
.inq-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.inquiry-form .fine { grid-column: 1 / -1; margin: 0; }

/* Footer */
.footer { background: var(--navy-deep); color: #cdd8e6; padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,.08); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: start; }
.brand-foot { color: #fff; margin-bottom: 14px; }
.foot-tag { font-weight: 500; color: #9fb2c8; max-width: 380px; font-size: 14.5px; }
.foot-col h4 { color: #fff; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; color: #9fb2c8; text-decoration: none; padding: 5px 0; font-size: 14px; }
.foot-col a:hover { color: var(--accent); }
.foot-legal { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.footer .fine { color: #7e93ab; margin-top: 8px; }
.foot-rights { margin-top: 12px; font-size: 13px; color: #7e93ab; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(6, 13, 27, .62); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: var(--radius); max-width: 880px; width: 100%; max-height: 86vh; overflow: auto; padding: 30px; position: relative; }
.modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.spec-table th { background: var(--tint); color: var(--navy); white-space: nowrap; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.price-table th, .price-table td { border: 1px solid var(--line); padding: 8px 10px; }
.price-table th { background: var(--tint); color: var(--navy); }
.price-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .company-grid, .inquiry-grid { grid-template-columns: 1fr; }
  .feat-grid, .prod-grid { grid-template-columns: 1fr 1fr; }
  .freight-form { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .statband { grid-template-columns: 1fr 1fr; }
  .statband-item:nth-child(3) { border-left: 0; }
  .statband-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .feat-grid, .prod-grid { grid-template-columns: 1fr; }
  .freight-form { grid-template-columns: 1fr; }
  .inquiry-form { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
}

/* ===== brand v2.2: official YSAP logo (emblem + wordmark, no company name) ===== */
.brand-logo-img { height: 30px; width: auto; display: block; }
.brand-foot .brand-logo-img { height: 30px; background: #fff; border-radius: 8px; padding: 5px 12px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.logo-mark-dark { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 8px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.35); display: block; margin-bottom: 14px; }
.company-logo { height: 46px; width: auto; display: block; margin-bottom: 16px; }
.foot-entity { margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.6; }
.team-block { margin-bottom: 36px; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.rep-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 20px; cursor: pointer; position: relative; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.rep-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); }
.rep-card.sel { border-color: var(--amber); background: rgba(245,158,11,.09); box-shadow: 0 8px 26px rgba(245,158,11,.12); }
.rep-card.sel::after { content: '✓'; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: #0a1428; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.rep-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; letter-spacing: .5px; margin-bottom: 12px; }
.rep-name { font-size: 16.5px; font-weight: 700; color: #fff; }
.rep-title { font-size: 13px; color: rgba(255,255,255,.62); margin-top: 3px; line-height: 1.45; }
.rep-langs { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 8px; }
.rep-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rep-actions .btn { padding: 7px 14px; font-size: 13px; }
.rep-note { font-size: 11.5px; color: rgba(255,255,255,.4); margin-top: 10px; }
@media (max-width: 720px) { .brand-logo-img { height: 24px; } .brand-foot .brand-logo-img { height: 26px; } .company-logo { height: 38px; } .logo-mark-dark { height: 34px; padding: 6px 10px; } }
