/* =========================================================
   Hayashi Technology Solutions — landing page styles
   Original implementation. Dark, premium SaaS aesthetic.
   ========================================================= */

:root {
  /* palette */
  --bg:            #07100d;
  --bg-2:          #0a1611;
  --bg-3:          #0e1d17;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(120, 255, 190, 0.28);

  --text:          #eef4f1;
  --text-soft:     #b9c6c0;
  --text-mute:     #7d8c86;

  --accent:        #2ff58c;   /* bright green */
  --accent-2:      #19d6a8;   /* teal-green   */
  --accent-glow:   rgba(47, 245, 140, 0.55);

  --radius:        18px;
  --radius-lg:     28px;
  --radius-pill:   999px;

  --shadow:        0 24px 60px -22px rgba(0, 0, 0, 0.75);
  --shadow-glow:   0 0 0 1px rgba(47,245,140,.15), 0 18px 50px -18px rgba(47,245,140,.35);

  --maxw:          1200px;
  --ease:          cubic-bezier(.22, .61, .36, 1);
}

/* ------------- reset / base ------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
h1, h2, h3, h4, .brand__text { font-family: 'Sora', system-ui, sans-serif; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

/* ------------- background decoration ------------- */
.bg-aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 80vh; z-index: -2;
  background:
    radial-gradient(45% 55% at 78% 18%, rgba(47,245,140,.16), transparent 70%),
    radial-gradient(40% 50% at 12% 8%,  rgba(25,214,168,.14), transparent 70%),
    radial-gradient(60% 60% at 50% 0%,  rgba(20,80,60,.35),  transparent 75%);
  filter: blur(8px);
  pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .5;
  background:
    linear-gradient(var(--bg), transparent 12%, transparent 88%, var(--bg)),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
}

/* ------------- buttons ------------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem;
  font-family: 'Sora', sans-serif;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { --pad-y: 15px; --pad-x: 30px; font-size: 1.02rem; }

.btn--primary {
  color: #042016;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px var(--accent-glow); }

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

/* ------------- eyebrow label ------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-soft);
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px 2px var(--accent-glow);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.78); } }

.grad-text {
  background: linear-gradient(110deg, var(--accent) 10%, var(--accent-2) 55%, #8effc9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------- navigation ------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 16, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(150deg, rgba(47,245,140,.18), rgba(25,214,168,.06));
  border: 1px solid var(--border-strong);
  color: var(--accent);
}
.brand__text { font-size: 1.16rem; letter-spacing: -.01em; }
.brand__text-accent { color: var(--accent); }

.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: .95rem; color: var(--text-soft); font-weight: 500;
  position: relative; padding: 6px 0; transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease); border-radius: 2px;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px; padding: 8px 24px 22px;
  background: rgba(8,16,13,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a { padding: 13px 4px; color: var(--text-soft); border-bottom: 1px solid var(--border); font-weight: 500; }
.nav__mobile .btn { margin-top: 14px; justify-content: center; }
.nav__mobile.is-open { display: flex; }

/* ------------- hero ------------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 110px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero__copy { animation: rise .9s var(--ease) both; }
.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800;
  letter-spacing: -.02em; margin: 22px 0 20px;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-soft); max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hero__chips li {
  font-size: .82rem; color: var(--text-soft); font-weight: 500;
  padding: 6px 13px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
}

/* particle logo stage */
.hero__logo { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: fade 1.2s var(--ease) both; }
.logo-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  max-width: 540px; border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 50% 42%, rgba(47,245,140,.10), transparent 72%),
    linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.logo-stage::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(45% 45% at 50% 45%, rgba(47,245,140,.14), transparent 70%);
  pointer-events: none;
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.logo-hint { font-size: .82rem; color: var(--text-mute); letter-spacing: .02em; transition: opacity .4s var(--ease); }
.logo-hint.is-hidden { opacity: 0; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--accent); border-radius: 2px; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* ------------- trust strip ------------- */
.strip { border-block: 1px solid var(--border); background: rgba(255,255,255,.012); }
.strip__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px;
  padding: 22px 24px; color: var(--text-mute); font-weight: 600;
  font-family: 'Sora', sans-serif; font-size: clamp(.82rem, 1.4vw, .98rem);
  letter-spacing: .01em;
}
.strip__inner span { transition: color .25s var(--ease); }
.strip__inner span:hover { color: var(--accent); }

/* ------------- generic section ------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018), transparent); }
.section__head { max-width: 640px; margin-bottom: 54px; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; margin: 18px 0 14px; }
.section__sub { color: var(--text-soft); font-size: clamp(1rem, 1.5vw, 1.12rem); }

/* ------------- service cards ------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 30px 26px 28px;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(47,245,140,.10), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent); margin-bottom: 18px;
  background: linear-gradient(150deg, rgba(47,245,140,.16), rgba(47,245,140,.02));
  border: 1px solid var(--border-strong);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 9px; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* ------------- why hayashi ------------- */
.why__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.why__intro { position: sticky; top: 100px; }
.why__intro .btn { margin-top: 26px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__list li {
  display: flex; gap: 15px; padding: 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.why__list li:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.why__num { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--accent); font-size: 1rem; opacity: .85; }
.why__list h4 { font-size: 1.05rem; margin-bottom: 5px; }
.why__list p { color: var(--text-soft); font-size: .9rem; }

/* ------------- closing cta ------------- */
.cta-final { padding-top: clamp(20px, 4vw, 40px); }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20,40,32,.85), rgba(10,22,17,.92));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.cta-card__glow {
  position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(47,245,140,.28), transparent 70%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.cta-card p { color: var(--text-soft); max-width: 56ch; margin: 16px auto 30px; font-size: 1.08rem; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-card__meta { margin-top: 26px; font-size: .85rem; color: var(--text-mute); letter-spacing: .02em; }

/* ------------- footer ------------- */
.footer { border-top: 1px solid var(--border); padding: 46px 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 26px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__brand strong { display: block; font-family: 'Sora', sans-serif; }
.footer__brand span { font-size: .85rem; color: var(--text-mute); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer__links a { color: var(--text-soft); font-size: .92rem; transition: color .2s; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { color: var(--text-mute); font-size: .85rem; text-align: right; }

/* ------------- scroll reveal ------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------- keyframes ------------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------- responsive ------------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { order: -1; }
  .logo-stage { max-width: 420px; }
  .hero__lead { max-width: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
  .why__intro { position: static; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__copy { text-align: center; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .strip__inner { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ------------- reduced motion ------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .1ms !important; scroll-behavior: auto !important; }
}
