/* ==========================================================================
   Nymo Dynamics — stylesheet
   ========================================================================== */

:root {
  --navy: #1d1928;
  --navy-800: #272132;
  --navy-700: #3c3350;
  --purple: #5c4492;
  --purple-dark: #46356f;
  --purple-light: #f1ecfa;
  --violet: #8b6fc7;
  --ink: #241f30;
  --gray-700: #423d4c;
  --gray-500: #6f6a7a;
  --gray-300: #dad6e3;
  --gray-100: #f7f5fa;
  --white: #ffffff;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(29, 25, 40, 0.07);
  --shadow-md: 0 12px 32px rgba(29, 25, 40, 0.12);
  --container-w: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--gray-700); }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

ul { list-style: none; margin: 0; padding: 0; }

img, svg { display: block; max-width: 100%; }

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

section { padding: 96px 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--purple); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--purple-dark); color: var(--white); box-shadow: var(--shadow-md); }

.btn-outline { border-color: var(--navy-700); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--purple-light); color: var(--navy); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.eyebrow {
  display: inline-block;
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-sub { color: var(--gray-500); }

.check-list { margin: 24px 0 32px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray-700);
  font-weight: 500;
}
.check-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 50%;
}

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.top-anchor { display: block; position: absolute; top: 0; height: 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--gray-300); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; border-radius: 6px; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: var(--navy-700); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--purple); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
}
.lang-option { padding: 2px 4px; }
.lang-option.is-active { color: var(--navy); }
a.lang-option { color: var(--gray-500); text-decoration: none; }
a.lang-option:hover { color: var(--purple); }
.lang-sep { color: var(--gray-300); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--white) 70%);
  padding-top: 72px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-bottom: 56px;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.05rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-visual { display: flex; justify-content: center; }
.network-svg { width: 100%; max-width: 420px; }

.net-nodes .node { fill: var(--white); stroke: var(--purple); stroke-width: 2; }
.net-nodes .node-core { fill: var(--navy); stroke: var(--violet); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse-core 3.2s ease-in-out infinite; }
.node-wrap { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
.node-icon path,
.node-icon rect,
.node-icon circle {
  fill: none;
  stroke: var(--purple);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.net-lines line { stroke-dasharray: 6 6; animation: dash 6s linear infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}
@keyframes pulse-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes dash { to { stroke-dashoffset: -120; } }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(29, 25, 40, 0.08);
}
.trust-strip li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-700); font-size: 0.92rem; }
.trust-strip .icon { color: var(--purple); flex-shrink: 0; }

/* ---------- About ---------- */
.about { background: var(--gray-100); }
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 40px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--gray-100);
}
.about-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0;
}
.about-role {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin: 2px 0 20px;
}
.about-credential {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 7px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  margin: 0;
}
.about-credential-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--purple); }

/* ---------- Services ---------- */
.services { background: var(--gray-100); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--purple-light);
  color: var(--purple);
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin: 0; }

.services-note { text-align: center; max-width: 620px; margin: 48px auto 0; color: var(--gray-500); font-size: 0.92rem; }

/* ---------- Process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  padding-left: 0;
}
.process-step { position: relative; padding: 32px 22px 22px; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-md); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--violet);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}
.process-step p { font-size: 0.92rem; margin: 0; }

/* ---------- Why Us ---------- */
.why-us { background: var(--navy); }
.why-us .eyebrow { color: var(--violet); }
.why-us h2, .why-us h3 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--navy-800);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.why-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 760px; }
.faq-head { margin-bottom: 40px; }
.faq-item {
  border-bottom: 1px solid var(--gray-300);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--purple);
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; }

/* ---------- Portfolio teaser (homepage) ---------- */
.portfolio-teaser { background: var(--navy); }
.teaser-inner {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 64px;
  align-items: center;
}
.teaser-text { max-width: 320px; }
.teaser-text .eyebrow { color: var(--violet); }
.teaser-text h2 { color: var(--white); margin-bottom: 28px; }
.teaser-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 210px));
  gap: 18px;
}
.teaser-logo-cell {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.teaser-logo-cell img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }
.teaser-logo-cell--sakura { background: #faf4f4; }

/* ---------- Portfolio page (dedicated) ---------- */
.portfolio-hero {
  background: linear-gradient(120deg, var(--purple) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 0 64px;
}
.portfolio-hero .eyebrow { color: rgba(255, 255, 255, 0.75); }
.portfolio-hero h1 { color: var(--white); margin-bottom: 16px; }
.portfolio-hero p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 0 auto; }

.partner-ad-grid {
  display: grid;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.partner-ad-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.partner-ad-logo {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  height: 140px;
}
.partner-ad-logo img { max-width: 100%; max-height: 100%; display: block; }
.partner-ad-logo--sakura { background: #faf4f4; }
.partner-ad-card h2 { margin-bottom: 4px; }
.partner-ad-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.partner-ad-tags span {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.partner-ad-card p { color: var(--gray-500); margin: 0 0 20px; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-details { margin: 28px 0; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); font-weight: 600; }
.contact-details a, .contact-details span:not(.contact-label) { font-weight: 600; color: var(--navy); font-size: 1.02rem; }

.contact-form {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 36px 26px;
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }
.form-row-split > div { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--navy-700); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(92, 68, 146, 0.18);
}
.contact-form button { margin-top: 4px; width: 100%; }
.form-status { margin-top: 8px; font-size: 0.9rem; }
.form-status:empty { margin-top: 0; }
.form-status.is-success { color: #1a7f4f; }
.form-status.is-error { color: #c23b3b; }
.form-status.is-sending { color: var(--gray-500); }
.form-consent { font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; }
.form-consent a { color: var(--gray-500); text-decoration: underline; }
.form-consent a:hover { color: var(--purple); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content section { padding: 0 0 56px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content h2 { margin-top: 1.6em; scroll-margin-top: 96px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content li { margin-bottom: 6px; color: var(--gray-700); }
.legal-updated { color: var(--gray-500); font-size: 0.88rem; }
.legal-divider { border: none; border-top: 1px solid var(--gray-300); margin: 56px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding-top: 72px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin-top: 14px; font-size: 0.92rem; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a { color: rgba(255, 255, 255, 0.7); }
.footer-col a:hover { color: var(--violet); }
.footer-bottom { padding: 24px; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 0; }
  .hero-visual { order: 1; max-width: 320px; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 320px; margin: 0 auto; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }

  .hero-visual { display: none; }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; padding: 20px 24px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .trust-strip { justify-content: center; text-align: left; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .partner-ad-card { grid-template-columns: 1fr; text-align: center; }
  .partner-ad-logo { margin: 0 auto; width: 160px; }
  .partner-ad-tags { justify-content: center; }

  .teaser-inner { grid-template-columns: 1fr; text-align: center; }
  .teaser-logos { justify-content: center; margin: 0 auto; }

  .form-row-split { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
}
