/* =============================================================
   PyrenAI — Landing Page Styles
   Design: Neobrutalist
   ============================================================= */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS ── */
:root {
  --ink:       #111827;
  --paper:     #F0F4FF;
  --blue:      #93C5FD;
  --yellow:    #FBBF24;
  --white:     #FFFFFF;
  --border:    2px solid #111827;
  --shadow:    4px 4px 0 #111827;
  --shadow-lg: 6px 6px 0 #111827;
  --shadow-blue: 4px 4px 0 #93C5FD;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  border: var(--border);
  text-decoration: none;
  transition: top 0.15s;
}

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

/* ── FOCUS STATES (accessibility) ── */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Remove outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}


/* =============================================================
   NAVIGATION
   ============================================================= */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 66px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-right: 28px;
}

.logo-group img {
  display: block;
}

.logo-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-name .blue {
  color: var(--blue);
  -webkit-text-stroke: 1px var(--ink);
}

.nav-right {
  display: flex;
  align-items: stretch;
  border-left: var(--border);
}

.nav-links {
  display: flex;
  list-style: none;
  height: 100%;
}

.nav-links li {
  height: 100%;
  display: flex;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-right: var(--border);
  transition: background 0.15s;
}

.nav-links a:hover {
  background: var(--blue);
}

.nav-cta {
  display: flex;
  align-items: stretch;
  border-left: var(--border);
}

.nav-cta a {
  display: flex;
  align-items: center;
  background: var(--yellow);
  color: var(--ink);
  padding: 0 28px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta a:hover {
  background: var(--ink);
  color: var(--white);
}

.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--white);
  border: none;
  border-left: var(--border);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-switcher:hover {
  background: var(--yellow);
}


/* =============================================================
   TICKER STRIP
   ============================================================= */

.ticker {
  background: var(--blue);
  border-top: var(--border);
  border-bottom: var(--border);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 99;
}

.ticker-inner {
  display: flex;
  gap: 0;
  animation: ticker-scroll 18s linear infinite;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-right: 2px solid rgba(17, 24, 39, 0.2);
}


/* =============================================================
   BUTTONS
   ============================================================= */

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: white;
  padding: 16px 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  transition: all 0.15s;
}

.btn-primary:hover {
  box-shadow: none;
  transform: translate(6px, 6px);
}

.btn-secondary {
  display: inline-block;
  background: white;
  color: var(--ink);
  padding: 16px 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: var(--blue);
  box-shadow: none;
  transform: translate(6px, 6px);
}


/* =============================================================
   SECTIONS (shared)
   ============================================================= */

section {
  padding: 90px 0;
}

section + section {
  border-top: var(--border);
}

.section-header {
  display: flex;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}

.section-num-big {
  font-family: 'Space Mono', monospace;
  font-size: 5rem;
  font-weight: 700;
  color: var(--blue);
  -webkit-text-stroke: 2px var(--ink);
  line-height: 1;
  flex-shrink: 0;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--yellow);
  border: var(--border);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 0.975rem;
  opacity: 0.65;
  line-height: 1.75;
  max-width: 500px;
}


/* =============================================================
   HERO
   ============================================================= */

.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  border-bottom: var(--border);
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  border: var(--border);
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(3rem, 4.8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero h1 .block-blue {
  display: inline-block;
  background: var(--blue);
  padding: 0 8px;
  -webkit-text-stroke: 1px var(--ink);
}

.hero h1 .dot-yellow {
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--ink);
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 460px;
  opacity: 0.75;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero right: image */
.hero-illustration-wrap {
  align-self: center;
}

.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
}


/* =============================================================
   SERVICES
   ============================================================= */

.services-section {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--border);
}

.service-card {
  padding: 36px 28px;
  border-right: var(--border);
  border-bottom: var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  background: white;
}

.service-card:nth-child(1) { background: var(--blue); }
.service-card:nth-child(2) { background: white; }
.service-card:nth-child(3) { background: var(--yellow); }
.service-card:nth-child(4) { background: var(--ink); color: white; }

.service-card:nth-child(4) .service-card-num,
.service-card:nth-child(4) h3,
.service-card:nth-child(4) p     { color: white; }
.service-card:nth-child(4) .service-link { color: var(--yellow); border-color: var(--yellow); }

.service-card:last-child,
.service-card:nth-child(4) {
  border-right: none;
}

.service-card:nth-child(3),
.service-card:nth-child(4) {
  border-bottom: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 var(--ink);
  z-index: 1;
}

.service-card-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.72;
  margin-bottom: 22px;
}

.service-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.service-link:hover {
  opacity: 0.6;
}


/* =============================================================
   HOW WE WORK
   ============================================================= */

.how-section {
  background: var(--paper);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  background: white;
  border: var(--border);
  border-top: 5px solid var(--ink);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all 0.15s;
}

.step:nth-child(1) { border-top-color: var(--blue); }
.step:nth-child(2) { border-top-color: var(--yellow); }
.step:nth-child(3) { border-top-color: var(--ink); }
.step:nth-child(4) { border-top-color: var(--blue); }

.step:hover {
  box-shadow: none;
  transform: translate(4px, 4px);
  background: var(--paper);
}

.step-n {
  font-family: 'Space Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: 20px;
}

.step-phase {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--yellow);
  border: 1px solid var(--ink);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.875rem;
  opacity: 0.65;
  line-height: 1.72;
}


/* =============================================================
   FAQ
   ============================================================= */

.faq-section {
  background: white;
}

.faq-list {
  border: var(--border);
}

.faq-item {
  border-bottom: var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item.open {
  background: var(--blue);
}

.faq-q {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  user-select: none;
}

.faq-q-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-toggle {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  border: var(--border);
  transition: transform 0.2s;
  font-family: 'Space Mono', monospace;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: white;
  color: var(--ink);
}

.faq-a {
  display: none;
  padding: 0 28px 24px;
  font-size: 0.925rem;
  line-height: 1.78;
  opacity: 0.7;
}

.faq-item.open .faq-a {
  display: block;
}


/* =============================================================
   CONTACT
   ============================================================= */

.contact-section {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}

/* yellow top border accent */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
}

/* blue decorative block — top right corner */
.contact-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 260px;
  height: 260px;
  background: var(--blue);
  opacity: 0.07;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 24px;
}

.contact-left h2 em {
  font-style: normal;
  color: var(--yellow);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
}

.contact-left p {
  font-size: 0.975rem;
  opacity: 0.6;
  line-height: 1.72;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* email link — blue card */
.contact-link:nth-child(1) {
  background: var(--blue);
  border: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.contact-link:nth-child(1):hover {
  background: white;
  box-shadow: none;
  transform: translate(6px, 6px);
}

/* instagram link — yellow card */
.contact-link:nth-child(2) {
  background: var(--yellow);
  border: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.contact-link:nth-child(2):hover {
  background: white;
  box-shadow: none;
  transform: translate(6px, 6px);
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  text-decoration: none;
  transition: all 0.15s;
}

.link-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 5px;
}

.link-val {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.link-arrow {
  font-size: 1.4rem;
  opacity: 0.5;
}

.contact-link:hover .link-arrow {
  opacity: 1;
}


/* =============================================================
   FOOTER
   ============================================================= */

footer {
  padding: 24px 0;
  border-top: var(--border);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-logo-name em {
  font-style: normal;
  color: var(--blue);
  -webkit-text-stroke: 1px var(--ink);
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.footer-copy a {
  color: var(--ink);
  opacity: 0.6;
  text-decoration: none;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 960px) {
  .hero-layout          { grid-template-columns: 1fr; }
  .hero-illustration-wrap { max-width: 560px; }
  .services-grid        { grid-template-columns: 1fr 1fr; }
  .steps-grid           { grid-template-columns: 1fr 1fr; }
  .contact-inner        { grid-template-columns: 1fr; gap: 48px; }
  .nav-links            { display: none; }
}

@media (max-width: 600px) {
  .hero-illustration-wrap { display: none; }
}

@media (max-width: 600px) {
  .services-grid        { grid-template-columns: 1fr; }
  .steps-grid           { grid-template-columns: 1fr; }
  .service-card         { border-right: none; }
}
