/* ============================================================
   Akashic Intelligence — corporate site
   Brand rules: Outfit throughout · no ALL CAPS anywhere ·
   cyan (#67e8f9) ONLY for glow / pulse / borders, never text.
   ============================================================ */

:root {
  --bg: #0d0a0e;
  --bg-deep: #07050a;
  --bg-elev: #161318;
  --bg-elev-2: #1c1820;

  --ink: #f0ebe1;
  --ink-dim: #9a9690;
  --ink-faint: #a59b8e;

  --border: rgba(240, 235, 225, 0.08);
  --border-soft: rgba(240, 235, 225, 0.06);
  --border-strong: rgba(240, 235, 225, 0.14);

  /* cyan — glow/effects only */
  --cyan: #67e8f9;
  --cyan-dim: rgba(103, 232, 249, 0.35);
  --cyan-faint: rgba(103, 232, 249, 0.12);

  /* danu aurora — product accent (glow only) */
  --emerald: #3de5a8;
  --violet: #9d7bff;

  --ease-settle: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

/* ambient background glow ---------------------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(103, 232, 249, 0.08), transparent 70%),
    radial-gradient(40% 40% at 85% 8%, rgba(157, 123, 255, 0.05), transparent 70%),
    radial-gradient(50% 40% at 12% 95%, rgba(61, 229, 168, 0.04), transparent 70%),
    var(--bg);
}

/* shared layout -------------------------------------------- */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 32px;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  margin-bottom: 32px;
  padding-bottom: 14px;
  position: relative;
}
.glow-rule::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    rgba(103, 232, 249, 0.6),
    rgba(103, 232, 249, 0.18) 28%,
    rgba(240, 235, 225, 0.05) 58%,
    transparent 92%);
  box-shadow: 0 0 6px rgba(103, 232, 249, 0.28), 0 2px 14px rgba(103, 232, 249, 0.18);
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }

/* buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-settle),
              box-shadow 0.25s var(--ease-settle),
              transform 0.25s var(--ease-settle),
              background 0.25s var(--ease-settle);
}
.btn-primary {
  color: var(--ink);
  background: rgba(103, 232, 249, 0.08);
  border-color: var(--cyan-dim);
}
.btn-primary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 0 32px -6px rgba(103, 232, 249, 0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink-dim);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--bg-elev);
  transform: translateY(-1px);
}

/* header --------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(13, 10, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-mark {
  display: block;
  filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.35));
}
.wordmark-text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.header-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--ink); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--cyan-dim);
  border-radius: var(--r-sm);
  color: var(--ink) !important;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav-cta:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px -8px rgba(103, 232, 249, 0.5);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

/* hero ----------------------------------------------------- */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 92px 32px 72px;
  text-align: center;
}
.hero-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  animation: emblem-rise 1.1s var(--ease-settle) both;
}
.hero-emblem img {
  width: 200px;
  height: 200px;
  animation: emblem-pulse 5.5s ease-in-out infinite;
}
@keyframes emblem-rise { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
/* art already carries its own glow — pulse adds a gentle outer breathe */
@keyframes emblem-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(103, 232, 249, 0.18)); }
  50% { filter: drop-shadow(0 0 26px rgba(103, 232, 249, 0.45)); }
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero-headline {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 auto 26px;
  max-width: 15ch;
}
.hero-subhead {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 auto 38px;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* statement ------------------------------------------------ */
.statement-lede {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  max-width: 760px;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.statement-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 680px;
}

/* products ------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 36px 34px 30px;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-settle),
              box-shadow 0.35s var(--ease-settle),
              transform 0.35s var(--ease-settle);
}
.product::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.7;
  transition: opacity 0.35s;
}
.product-akashic::before {
  background: linear-gradient(to right, var(--cyan), transparent 70%);
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.5);
}
.product-danu::before {
  background: linear-gradient(to right, var(--emerald), var(--violet) 80%, transparent);
  box-shadow: 0 0 16px rgba(61, 229, 168, 0.4);
}
.product:hover { transform: translateY(-3px); }
.product-akashic:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 18px 50px -20px rgba(103, 232, 249, 0.45);
}
.product-danu:hover {
  border-color: rgba(157, 123, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(157, 123, 255, 0.35), 0 18px 50px -20px rgba(61, 229, 168, 0.4);
}
.product:hover::before { opacity: 1; }

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.product-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.product-tag {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-faint);
  white-space: nowrap;
}
.product-line {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.product-points {
  list-style: none;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.product-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}
.product-points li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(103, 232, 249, 0.7);
}
.product-danu .product-points li::before {
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(61, 229, 168, 0.7);
}
.product-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
  transition: gap 0.25s var(--ease-settle);
}
.product-link .arrow { transition: transform 0.25s var(--ease-settle); }
.product-link:hover { gap: 12px; }
.product-link:hover .arrow { transform: translateX(2px); }

/* approach ------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.principle {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(240, 235, 225, 0.015);
  padding: 30px 30px 26px;
  transition: border-color 0.3s, background 0.3s;
}
.principle:hover {
  border-color: var(--border-strong);
  background: rgba(240, 235, 225, 0.03);
}
.principle h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.principle p {
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-dim);
}

/* company -------------------------------------------------- */
.company-lede {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  max-width: 720px;
  letter-spacing: -0.005em;
  margin-bottom: 40px;
}
.company-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.company-facts > div {
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
}
.company-facts dt {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.company-facts dd {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}

/* contact -------------------------------------------------- */
.contact { text-align: center; }
.contact .section-label { text-align: left; }
.contact-headline {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 18px;
  text-wrap: balance;
}
.contact-body {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-dim);
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* footer --------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 48px 32px 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-wordmark .wordmark-text { font-size: 15px; }
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-fine {
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* reveal animation ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-settle), transform 0.7s var(--ease-settle);
}
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: 0.05s; }

/* responsive ----------------------------------------------- */
@media (max-width: 820px) {
  .product-grid,
  .principles,
  .company-facts { grid-template-columns: 1fr; }
  .company-facts > div { padding-top: 14px; }
  .band { padding: 64px 24px; }
  .hero { padding: 64px 24px 48px; }
}

@media (max-width: 640px) {
  .header { padding: 14px 20px; }
  .header-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13, 10, 14, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .header-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .header-nav a { padding: 13px 4px; border-bottom: 1px solid var(--border-soft); }
  .nav-cta { border: 1px solid var(--cyan-dim); margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
