/* Guidasha shared styles
   Dark theme derived from Guidasha Design System v2.
   Used by index.html, privacy.html, and terms.html.
*/

:root {
  color-scheme: dark;
  --brand-night: #1b2232;
  --brand-indigo: #4a5a9e;
  --brand-periwinkle: #a9b4ec;
  --brand-lavender: #c3b2e8;
  --bg: #1b2232;
  --lowest: #171c29;
  --surface: #20283a;
  --container: #252e42;
  --high: #2b354a;
  --highest: #333e55;
  --bright: #38435b;
  --text: #e8e7f2;
  --text-secondary: #b3b2c4;
  --text-muted: #aaa9ba;
  --outline: #9695a8;
  --outline-soft: #596176;
  --divider: #434b60;
  --success: #8fcbaa;
  --focus: #c3b2e8;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-interactive: 0 5px 16px rgba(0, 0, 0, .32);
  --max: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--lowest);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 6%, rgba(169, 180, 236, .09), transparent 28rem),
    radial-gradient(circle at 8% 38%, rgba(195, 178, 232, .055), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, var(--lowest) 100%);
  color: var(--text);
  font: 400 16px/1.5 "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .018), transparent 36%);
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -80px;
  left: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-periwinkle);
  color: #12225a;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.container {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  right: 0;
  left: 0;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(169, 180, 236, .14);
  border-radius: var(--radius-full);
  background: rgba(27, 34, 50, .82);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--brand-periwinkle);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-mark::before {
  inset: 6px;
  border: 1px solid var(--brand-lavender);
  border-left-color: transparent;
}

.brand-mark::after {
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--brand-periwinkle);
  transform: translate(-50%, -50%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.nav-links a:hover {
  background: var(--container);
  color: var(--brand-periwinkle);
}

main { overflow: hidden; }

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.25rem, 5.4vw, 5.15rem);
  line-height: 1;
}

h2 {
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.62;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 132px 0 88px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -18%;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 180, 236, .1), transparent 66%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.hero p {
  max-width: 620px;
  margin-top: 22px;
}

.accent {
  color: var(--brand-periwinkle);
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 32px;
  padding: 8px 13px;
  border: 1px solid rgba(169, 180, 236, .22);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .025);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(143, 203, 170, .1);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
}

.ripple-visual {
  position: relative;
  width: min(580px, 48vw);
  aspect-ratio: 1.42;
  border-radius: 50%;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, .26));
  transform: perspective(800px) rotateX(60deg);
}

.ripple-visual::before,
.ripple-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--text) 0 1px, var(--brand-periwinkle) 2px, transparent 4px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 9%, rgba(169, 180, 236, .42) 9.2% 9.5%, transparent 9.8% 17%);
  opacity: .78;
  animation: breathe 6s ease-in-out infinite alternate;
}

.ripple-visual::after {
  inset: 18%;
  opacity: .42;
  animation-delay: -2.5s;
}

.vertical-light {
  position: absolute;
  top: -38%;
  left: 50%;
  width: 1px;
  height: 176%;
  background: linear-gradient(180deg, transparent, rgba(169, 180, 236, .8), transparent);
  box-shadow: 0 0 24px rgba(169, 180, 236, .5);
  transform: translateX(-50%) rotateX(-60deg);
}

.vertical-light i {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 14px rgba(169, 180, 236, .85);
  transform: translateX(-50%);
}

.vertical-light i:nth-child(1) { top: 18%; }
.vertical-light i:nth-child(2) { top: 30%; }
.vertical-light i:nth-child(3) { top: 42%; }
.vertical-light i:nth-child(4) { top: 54%; }
.vertical-light i:nth-child(5) { top: 66%; }

.subtle-glow {
  position: absolute;
  z-index: -1;
  inset: -14% -18%;
  background:
    radial-gradient(circle at 52% 49%, rgba(169, 180, 236, .12), transparent 38%),
    radial-gradient(circle at 66% 34%, rgba(195, 178, 232, .06), transparent 24%);
  filter: blur(22px);
}

.section {
  position: relative;
  padding: 96px 0;
}

.two-col {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.two-col.reverse { grid-template-columns: 1.05fr .95fr; }

.copy-block p:first-of-type { margin-top: 26px; }
.copy-block p + p { margin-top: 16px; }

.abstract-wave {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 45% 50%, rgba(169, 180, 236, .1), transparent 40%),
    var(--surface);
}

.wave-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(.45);
  opacity: .78;
}

.wave-lines path {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: .62;
}

.philosophy { background: rgba(23, 28, 41, .42); }
.philosophy .two-col { grid-template-columns: .9fr 1.1fr; }
.philosophy h2 { margin-bottom: 22px; }

.process-list { display: grid; gap: 14px; }

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--container);
}

.icon-circle {
  position: relative;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--highest);
  place-items: center;
}

.icon-circle svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--brand-periwinkle);
  stroke-width: 1.7;
}

.process-item h3 {
  margin-bottom: 5px;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.process-item p { font-size: 15px; line-height: 1.55; }

.works {
  padding-top: 96px;
  padding-bottom: 96px;
}

.works-grid {
  display: grid;
  grid-template-columns: 290px minmax(340px, .9fr) minmax(250px, .58fr);
  gap: 58px;
  align-items: center;
}

.phone-frame {
  width: 290px;
  overflow: hidden;
  border: 7px solid var(--highest);
  border-radius: var(--radius-xl);
  background: var(--container);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.process-title { margin-bottom: 32px; }

.side-copy {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--container);
}

.side-copy p + p {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
}

.contact {
  padding: 104px 0 88px;
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 72px;
  align-items: start;
}

.contact-copy h2 { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.contact-copy .eyebrow { margin-bottom: 14px; }

.contact-copy p {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 26px;
}

.eyebrow {
  color: var(--brand-periwinkle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--container);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  margin-bottom: 20px;
  padding: 14px 15px;
  border: 1px solid var(--outline-soft);
  border-radius: var(--radius-md);
  background: var(--high);
  color: var(--text);
  font: inherit;
  transition: border-color .2s ease, background-color .2s ease;
}

input:hover,
textarea:hover { border-color: var(--outline); }

input:focus,
textarea:focus {
  border-color: var(--brand-periwinkle);
  background: var(--highest);
}

textarea {
  min-height: 142px;
  resize: vertical;
}

button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--brand-periwinkle);
  color: #12225a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  box-shadow: var(--shadow-interactive);
  transition: background-color .2s ease, transform .2s ease;
}

button:hover {
  background: #bbc4f3;
  transform: translateY(-1px);
}

.footer {
  padding: 26px 0 38px;
  background: var(--lowest);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer a:hover { color: var(--brand-periwinkle); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-wave-divider {
  display: none;
  position: relative;
  overflow: hidden;
}

/* Legal pages */
.legal-page { --max: 900px; }
.legal-page main { padding: 148px 0 88px; }

.legal-panel {
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.legal-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2.75rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.legal-panel h2 {
  margin: 42px 0 12px;
  font-family: "Lato", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0;
}

.legal-panel p,
.legal-panel li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.legal-panel p { margin: 0 0 16px; }

.legal-panel ul {
  margin: 0 0 18px;
  padding-left: 1.4rem;
}

.legal-panel li + li { margin-top: 6px; }

.last-updated {
  margin-bottom: 34px !important;
  color: var(--brand-periwinkle) !important;
  font-size: 14px !important;
  font-weight: 700;
}

.notice {
  margin-top: 42px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--container);
}

@keyframes breathe {
  from { opacity: .62; transform: scale(.985); }
  to { opacity: .86; transform: scale(1.015); }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .two-col.reverse,
  .philosophy .two-col,
  .contact-grid { grid-template-columns: 1fr; }

  .hero { padding-top: 124px; }
  .hero-visual { min-height: 350px; order: -1; }
  .ripple-visual { width: min(620px, 84vw); }
  .two-col { gap: 48px; }
  .works-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone-frame { margin: 0 auto; }
  .side-copy { max-width: 660px; }
  .contact-grid { gap: 42px; }
}

@media (max-width: 768px) {
  .mobile-wave-divider {
    display: block;
    width: min(100% - 28px, var(--max));
    height: 90px;
    margin: 0 auto -1rem;
    opacity: .4;
  }

  .mobile-wave-divider .wave-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { top: 12px; }
  .nav { width: calc(100vw - 24px); }
  .brand { letter-spacing: .09em; }
  .nav-links a:first-child { display: none; }
  .hero { min-height: auto; padding: 106px 0 68px; }
  .hero-grid { gap: 18px; }
  .hero-visual { min-height: 250px; }
  .section { padding: 72px 0; }
  .abstract-wave { min-height: 210px; }
  .process-item { padding: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-panel { padding: 22px; border-radius: var(--radius-lg); }
  .legal-page main { padding-top: 116px; }
  .legal-panel { border-radius: var(--radius-lg); }
}
