/* ==========================================================================
   ARCS GRID — Premium Corporate Design System
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --c-bg:       #08090d;
  --c-bg-alt:   #0e1117;
  --c-surface:  #13161d;
  --c-surface2: #1a1e28;
  --c-border:   rgba(255,255,255,.06);
  --c-border-h: rgba(255,255,255,.12);
  --c-text:     #c8cdd6;
  --c-text-m:   #6e7585;
  --c-white:    #f0f2f5;
  --c-accent:   #4f7df9;
  --c-accent-l: #6e9bff;
  --c-accent-g: rgba(79,125,249,.12);
  --c-gradient: linear-gradient(135deg, #4f7df9 0%, #9f6ef9 100%);

  --ff-sans: 'Inter','Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;
  --fw-heavy:  800;
  --fw-black:  900;

  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease:      cubic-bezier(.4,0,.2,1);
  --ease-out:  cubic-bezier(0,.6,.4,1);
  --ease-spring: cubic-bezier(.22,1,.36,1);

  --header-h: 64px;
}

/* --- Reset --- */
*,*::before,*::after { margin:0;padding:0;box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ff-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul,ol { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media(min-width:768px){ .container { padding: 0 40px; } }
@media(min-width:1200px){ .container { padding: 0 24px; } }

.hide-sp { display: none; }
@media(min-width:768px){ .hide-sp { display: inline; } }

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,125,249,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%,-50%);
  transition: opacity .6s var(--ease);
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }
@media(max-width:767px){ .cursor-glow { display: none; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; top:0; left:0; right:0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(8,9,13,.8);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: var(--c-border);
}
.header-inner {
  max-width: 1120px; width:100%; margin:0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
@media(min-width:768px){ .header-inner { padding: 0 40px; } }
@media(min-width:1200px){ .header-inner { padding: 0 24px; } }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; color: var(--c-accent); }
.logo-text {
  font-size: 1.15rem; font-weight: var(--fw-heavy);
  letter-spacing: .04em; color: var(--c-white);
}
.logo-thin { font-weight: var(--fw-normal); opacity: .5; }

/* Nav */
.nav { display: none; align-items: center; gap: 32px; }
@media(min-width:768px){ .nav { display: flex; } }
.nav-link {
  font-size: .8125rem; font-weight: var(--fw-medium);
  color: var(--c-text-m);
  letter-spacing: .03em;
  transition: color .3s var(--ease);
  position: relative;
}
.nav-link::after {
  content:''; position: absolute; bottom: -4px; left:0;
  width:0; height:1.5px;
  background: var(--c-gradient);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { width:100%; }
.nav-link--cta {
  padding: 7px 18px;
  border-radius: 6px;
  border: 1px solid var(--c-border-h);
  color: var(--c-white);
  transition: all .3s var(--ease);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-g);
}

/* Hamburger */
.menu-toggle {
  display: flex; flex-direction: column; gap: 6px;
  background: none; border: none; padding: 8px; z-index: 101;
}
@media(min-width:768px){ .menu-toggle { display: none; } }
.menu-bar {
  width: 22px; height: 1.5px;
  background: var(--c-white);
  transition: all .35s var(--ease-spring);
  transform-origin: center;
}
.menu-toggle.active .menu-bar:first-child { transform: rotate(45deg) translate(2.5px,2.5px); }
.menu-toggle.active .menu-bar:last-child  { transform: rotate(-45deg) translate(2.5px,-2.5px); }

/* Mobile Nav */
@media(max-width:767px){
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; inset:0;
    background: rgba(8,9,13,.97);
    backdrop-filter: blur(32px);
    justify-content: center; align-items: center;
    gap: 36px; z-index: 100;
  }
  .nav.open .nav-link { font-size: 1.25rem; color: var(--c-white); }
  .nav.open .nav-link--cta { font-size: 1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset:0;
  width:100%; height:100%;
}
.hero-overlay {
  position: absolute; inset:0;
  background: linear-gradient(180deg,
    rgba(8,9,13,.3) 0%,
    rgba(8,9,13,.1) 40%,
    rgba(8,9,13,.7) 85%,
    rgba(8,9,13,1) 100%
  );
}
.hero-content {
  position: relative; z-index:1;
  text-align: center;
  padding: 0 20px;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--c-border-h);
  background: rgba(255,255,255,.03);
  font-size: .75rem; font-weight: var(--fw-semi);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-m);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px var(--c-accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:.6; transform:scale(.8); }
  50% { opacity:1; transform:scale(1.2); }
}
.hero-title {
  font-size: clamp(1.85rem, 5.5vw, 3.4rem);
  font-weight: var(--fw-black);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--c-white);
  margin-bottom: 20px;
}
.title-accent {
  background: var(--c-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(.925rem, 1.5vw, 1.05rem);
  color: var(--c-text-m);
  line-height: 1.9;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 36px; left:50%;
  transform: translateX(-50%);
}
.scroll-track {
  width: 1px; height: 48px;
  background: rgba(255,255,255,.1);
  border-radius: 1px;
  overflow: hidden;
}
.scroll-thumb {
  width: 100%; height: 16px;
  background: var(--c-accent);
  border-radius: 1px;
  animation: scrollDown 2.4s var(--ease) infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-16px); opacity:0; }
  30%  { opacity:1; }
  70%  { opacity:1; }
  100% { transform: translateY(48px); opacity:0; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--c-gradient);
  color: var(--c-white);
  font-size: .9rem; font-weight: var(--fw-semi);
  border-radius: 8px;
  border: none;
  transition: all .3s var(--ease);
  box-shadow: 0 2px 16px rgba(79,125,249,.2);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content:''; position: absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
  opacity:0; transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(79,125,249,.3); }
.btn-primary:hover::before { opacity:1; }
.btn-primary svg { transition: transform .3s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 13px 28px;
  color: var(--c-text);
  font-size: .9rem; font-weight: var(--fw-medium);
  border-radius: 8px;
  border: 1px solid var(--c-border-h);
  background: transparent;
  transition: all .3s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-white);
  background: var(--c-accent-g);
}

.btn-full { width: 100%; justify-content: center; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: 'Inter', sans-serif;
  font-size: .75rem; font-weight: var(--fw-semi);
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--c-text-m); opacity: .4;
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 100px 0; position: relative; }
@media(min-width:768px){ .section { padding: 140px 0; } }

.section--dark { background: var(--c-bg-alt); }

.section-intro { margin-bottom: 64px; }
@media(min-width:768px){ .section-intro { margin-bottom: 80px; } }
.section-sub {
  margin-top: 16px;
  font-size: .95rem;
  color: var(--c-text-m);
  max-width: 520px;
}

.label {
  display: inline-block;
  font-size: .7rem; font-weight: var(--fw-semi);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.heading-lg {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: var(--fw-heavy);
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--c-white);
}
.body-text {
  font-size: .95rem;
  color: var(--c-text);
  line-height: 1.9;
  margin-bottom: 16px;
}
.body-text:last-child { margin-bottom: 0; }

/* Split Layout */
.split-layout {
  display: grid; gap: 48px;
}
@media(min-width:768px){
  .split-layout { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid; gap: 16px;
}
@media(min-width:768px){
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content:''; position: absolute; top:0; left:0; right:0;
  height: 1px;
  background: var(--c-gradient);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.service-card:hover {
  border-color: var(--c-border-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.service-card:hover::before { opacity: 1; }

@media(min-width:768px){
  .service-card--wide { grid-column: 1 / -1; }
  .service-card--wide .service-body {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  }
  .service-card--wide .service-title { grid-column: 1; grid-row: 1; }
  .service-card--wide .service-desc  { grid-column: 2; grid-row: 1/3; }
  .service-card--wide .service-tags  { grid-column: 1; grid-row: 2; align-self: end; }
}

.service-card--accent {
  background: linear-gradient(135deg, rgba(79,125,249,.06), rgba(159,110,249,.06));
  border-color: rgba(79,125,249,.15);
}

.service-num {
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: var(--fw-semi);
  letter-spacing: .15em;
  color: var(--c-accent);
  opacity: .6;
  margin-bottom: 20px;
}
.service-title {
  font-size: 1.2rem; font-weight: var(--fw-bold);
  color: var(--c-white); line-height: 1.4;
  margin-bottom: 14px;
}
.service-desc {
  font-size: .875rem; color: var(--c-text-m);
  line-height: 1.8; margin-bottom: 20px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  padding: 4px 12px;
  font-size: .7rem; font-weight: var(--fw-medium);
  color: var(--c-accent-l);
  background: var(--c-accent-g);
  border-radius: 100px;
  border: 1px solid rgba(79,125,249,.1);
}
.service-list {
  display: flex; flex-direction: column; gap: 8px;
}
.service-list li {
  font-size: .85rem; color: var(--c-text);
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content:'';
  position: absolute; left:0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent); opacity: .5;
}
.service-metrics {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.metric {
  flex: 1; min-width: 80px;
  padding: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-align: center;
}
.metric-label {
  display: block;
  font-size: .65rem; font-weight: var(--fw-semi);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-m);
  margin-bottom: 4px;
}
.metric-value {
  font-size: .95rem; font-weight: var(--fw-bold);
  color: var(--c-white);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-steps {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 48px;
}
.process-line {
  position: absolute; left: 17px; top: 0; bottom: 0;
  width: 1px;
  background: var(--c-border);
}
.process-line::after {
  content:'';
  position: absolute; top:0; left:0;
  width: 1px; height: 0%;
  background: var(--c-gradient);
  transition: height 1s var(--ease);
}
.process-line.active::after { height: 100%; }

.process-step {
  position: relative;
  padding-bottom: 56px;
}
.process-step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute; left: -48px; top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-surface2);
  border: 1px solid var(--c-border-h);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: all .5s var(--ease);
}
.process-step.visible .step-dot {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 20px rgba(79,125,249,.3);
}
.step-dot span {
  font-family: 'Inter', sans-serif;
  font-size: .7rem; font-weight: var(--fw-bold);
  color: var(--c-text-m);
  transition: color .5s;
}
.process-step.visible .step-dot span { color: var(--c-white); }

.step-body h3 {
  font-size: 1.1rem; font-weight: var(--fw-bold);
  color: var(--c-white);
  margin-bottom: 8px;
}
.step-body p {
  font-size: .9rem; color: var(--c-text-m);
  line-height: 1.8;
}

/* ==========================================================================
   TECHNOLOGY
   ========================================================================== */
.tech-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media(min-width:640px){ .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .tech-grid { grid-template-columns: repeat(4, 1fr); } }

.tech-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  text-align: center;
  transition: all .4s var(--ease);
}
.tech-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(79,125,249,.1), 0 8px 32px rgba(0,0,0,.3);
}

.tech-icon-wrap {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  color: var(--c-accent-l);
  opacity: .8;
  transition: opacity .3s;
}
.tech-card:hover .tech-icon-wrap { opacity: 1; }

.tech-card h3 {
  font-size: .9rem; font-weight: var(--fw-bold);
  color: var(--c-white);
  margin-bottom: 8px;
}
.tech-card p {
  font-size: .8rem; color: var(--c-text-m);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section--contact {
  background: var(--c-bg);
}
.contact-layout {
  display: grid; gap: 48px;
}
@media(min-width:768px){
  .contact-layout { grid-template-columns: 5fr 7fr; gap: 64px; }
}

.company-info {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.company-info dl { display: flex; flex-direction: column; gap: 2px; }
.company-info dt {
  font-size: .65rem; font-weight: var(--fw-semi);
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--c-accent);
}
.company-info dd {
  font-size: .9rem; color: var(--c-text);
  line-height: 1.7;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media(min-width:480px){ .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: .75rem; font-weight: var(--fw-semi);
  color: var(--c-text-m);
  letter-spacing: .04em;
}
.req { color: var(--c-accent); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-white);
  font-size: .9rem;
  font-family: var(--ff-sans);
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(79,125,249,.12);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236e7585' d='M5 7.5L.67 3.17l.66-.67L5 6.17 8.67 2.5l.66.67z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
  margin-bottom: 40px;
}
@media(min-width:768px){
  .footer-top { flex-direction: row; justify-content: space-between; }
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  font-size: .8rem; color: var(--c-text-m);
  transition: color .3s;
}
.footer-nav a:hover { color: var(--c-white); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
@media(min-width:768px){
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom small { font-size: .72rem; color: var(--c-text-m); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-spring), transform .9s var(--ease-spring);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: .12s; }
[data-reveal][data-delay="2"] { transition-delay: .24s; }
[data-reveal][data-delay="3"] { transition-delay: .36s; }
[data-reveal][data-delay="4"] { transition-delay: .48s; }

/* ==========================================================================
   SCROLLBAR & SELECTION
   ========================================================================== */
::selection { background: rgba(79,125,249,.25); color: var(--c-white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }
