/* =====================================================================
   GOSHI TECHNOLOGY — STYLES
   Part A: brand colors & fonts (change these to restyle the whole site)
   ===================================================================== */
:root {
  --brand: #1f5eff;        /* A1 — Goshi Blue (main color) */
  --brand-dark: #1747cc;
  --accent: #00b4d8;       /* A2 — Goshi Cyan (accent) */
  --text: #1d1d1f;         /* A3 — main text */
  --muted: #6e6e73;        /* A4 — secondary text */
  --bg: #ffffff;           /* A5 — page background */
  --bg-alt: #f5f5f7;       /* A6 — alternate section background */
  --line: #e5e5ea;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Part B: base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75em; }
.gradient-text { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Part C: buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: 14px 26px; border-radius: 999px; font: 600 1rem var(--font); border: 0; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(31,94,255,.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { background: rgba(31,94,255,.08); }
.btn-light { background: #fff; color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }

/* SECTION 1 — Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; }
.logo-text span { font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); font-size: .93rem; font-weight: 500; opacity: .8; }
.nav a:not(.btn):hover { opacity: 1; color: var(--brand); }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 15px; } .menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* SECTION 2 — Hero */
.hero { padding: 110px 0 100px; text-align: center; background:
  radial-gradient(60% 50% at 50% 0%, rgba(31,94,255,.10), transparent 70%),
  radial-gradient(40% 40% at 85% 30%, rgba(0,180,216,.10), transparent 70%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 640px; margin: .5em auto 2em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-badges { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .95rem; }
.check { color: var(--brand); font-weight: 700; margin-right: 4px; }

/* Sections & cards */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.section-head .lead { margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { color: var(--text); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.10); }
.service-card p { color: var(--muted); flex: 1; }
.card-link { color: var(--brand); font-weight: 600; font-size: .95rem; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; }
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile.blue { background: linear-gradient(135deg, #1f5eff, #4f86ff); }
.icon-tile.violet { background: linear-gradient(135deg, #6a3df5, #9b7bff); }
.icon-tile.teal { background: linear-gradient(135deg, #0096b4, #00c2e0); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.stack { display: grid; gap: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: rgba(31,94,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%231f5eff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* SECTION 4d — process */
.process { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process li { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.process span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 12px; }
.process strong { display: block; margin-bottom: 4px; }
.process p { color: var(--muted); font-size: .93rem; margin: 0; }

/* SECTION 5 — training */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course p { color: var(--muted); margin: 0; }
.course-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }
.course-ask { background: linear-gradient(135deg, #f0f5ff, #eefbfd); border: 1px dashed rgba(31,94,255,.35); box-shadow: none; }
.course-ask .card-link { display: inline-block; margin-top: 12px; }
.formats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px; border-radius: var(--radius); background: var(--bg-alt); }
.formats p { color: var(--muted); margin: 0; font-size: .95rem; }

/* SECTION 6 — support */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chips span { background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: .9rem; }
.steps-list { margin: 0; padding-left: 1.2em; color: var(--muted); }
.steps-list li { margin-bottom: 6px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form h3 { margin-bottom: 0; }
.form-note { color: var(--muted); margin: -8px 0 0; font-size: .95rem; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,94,255,.15); }
.form .invalid { border-color: #e5484d; }
.form textarea { resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .93rem; min-height: 1.2em; }
.form-status.ok { color: #1a7f37; } .form-status.err { color: #e5484d; }
.calendly-box { padding: 0; overflow: hidden; }
.calendly-box iframe { width: 100%; height: 680px; border: 0; }

/* SECTION 7 — pricing */
.price { text-align: center; }
.price p:last-child { color: var(--muted); margin: 0; }
.price-tag { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .2em; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* SECTION 9 — reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.reviews-grid:empty { display: none; }
.review .stars, .stars { color: #f5a623; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 8px; }
.review p { margin-bottom: 12px; }
.review footer { color: var(--muted); font-size: .9rem; }
.reviews-empty { text-align: center; max-width: 560px; margin: 0 auto 32px; }
.reviews-empty p:last-child { color: var(--muted); margin: 0; }
.review-form { max-width: 640px; margin: 0 auto; }
.star-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { font-size: .9rem; font-weight: 500; margin-bottom: 4px; float: left; width: 100%; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.8rem; color: #d2d2d7; cursor: pointer; display: inline; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* SECTION 10 — tips */
.tip-tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--brand); background: rgba(31,94,255,.08); padding: 4px 10px; border-radius: 999px; }
.tip > p { color: var(--muted); }
.tip details summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; }
.tip details summary::-webkit-details-marker { display: none; }
.tip details summary::after { content: " →"; }
.tip details[open] summary::after { content: " ↑"; }
.tip details ul { padding-left: 1.1em; margin: 12px 0; }
.tip details li { margin-bottom: 6px; }

/* SECTION 11 — FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 300; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* SECTION 12 — contact */
.contact-email { display: inline-block; font-size: 1.3rem; font-weight: 600; margin: 8px 0 12px; word-break: break-all; }

/* SECTION 13 — pay */
.pay-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 48px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, var(--brand), var(--accent)); }
.pay-band h2 { margin-bottom: .2em; }
.pay-band p { margin: 0; opacity: .9; }

/* SECTION 14 — footer */
.site-footer { background: var(--bg-alt); padding: 64px 0 24px; border-top: 1px solid var(--line); font-size: .93rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 { font-size: .85rem; color: var(--text); margin-bottom: 12px; }
.footer-links a { display: block; color: var(--muted); padding: 3px 0; }
.footer-links a:hover { color: var(--brand); }
.site-footer .logo { margin-bottom: 10px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* SECTION 15 — chat assistant */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 10px 28px rgba(31,94,255,.4); display: grid; place-items: center; transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; fill: #fff; }
.chat-panel { position: absolute; right: 0; bottom: 72px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { padding: 16px 48px 16px 18px; background: linear-gradient(120deg, var(--brand), var(--accent)); color: #fff; position: relative; }
.chat-head strong { display: block; } .chat-head span { font-size: .82rem; opacity: .9; }
.chat-close { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.2); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.45; }
.msg.bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg.user { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { font-weight: 600; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 0; background: #fff; }
.chat-quick button { font: 500 .8rem var(--font); border: 1px solid rgba(31,94,255,.3); color: var(--brand); background: #fff; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.chat-quick button:hover { background: rgba(31,94,255,.08); }
.chat-input { display: flex; gap: 8px; padding: 12px; background: #fff; }
.chat-input input { flex: 1; font: inherit; padding: 10px 14px; border: 1px solid #d2d2d7; border-radius: 999px; min-width: 0; }
.chat-input input:focus { outline: none; border-color: var(--brand); }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; }

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

/* Section labels (open the site with ?labels at the end of the address) */
body.show-labels [data-section] { outline: 1px dashed rgba(229,72,77,.6); outline-offset: -1px; }
body.show-labels [data-section]:not(.site-header):not(.chat):not(.nav) { position: relative; }
body.show-labels [data-section]::before { content: attr(data-section); position: absolute; top: 0; left: 0; z-index: 40; background: #e5484d; color: #fff; font: 700 11px/1 var(--font); padding: 4px 6px; border-radius: 0 0 6px 0; pointer-events: none; }
body.show-labels .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards-3, .course-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); padding: 8px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; padding: 14px; }
  .menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .cards-3, .course-grid, .reviews-grid, .process, .formats, .row-2 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .pay-band { padding: 32px 24px; }
  .hero-badges { gap: 12px; flex-direction: column; align-items: center; }
  .footer-links { gap: 32px; }
  .chat { right: 16px; bottom: 16px; }
}
