/* =========================================
   NEXUS STUDIO — Landing Page Styles
   Theme: Dark luxury minimalism
   ========================================= */

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

:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #161616;
  --surface:   #1c1c1c;
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(255,255,255,0.15);
  --text:      #f0f0f0;
  --text-muted:#888;
  --text-dim:  #555;
  --accent:    #e8ff4d;
  --accent-2:  #b3ff00;
  --white:     #ffffff;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --section-gap: clamp(6rem, 12vw, 10rem);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILITIES ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-tag.light { color: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-header {
  margin-bottom: 4rem;
}

.dot { color: var(--accent); }

/* ---- BUTTONS ---- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,255,77,0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  color: var(--white);
  border-color: var(--border-h);
}

/* =========================================
   NAV
   ========================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad-x);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  cursor: default;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid rgba(232,255,77,0.4);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--accent);
  color: #0a0a0a;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  padding-top: 7rem;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232,255,77,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition-delay: 0.1s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 1.75rem;
  transition-delay: 0.2s;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 2.5rem;
  transition-delay: 0.3s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  transition-delay: 0.4s;
}

.hero-ticker {
  position: relative;
  bottom: 0;
  left: 0; right: 0;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 1.1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ticker-track .sep { color: var(--accent); opacity: 0.6; }

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

@media (max-width: 600px) {
  .br-desk { display: none; }
}

/* =========================================
   STATS
   ========================================= */

.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 4rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 1rem 2rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-plus {
  color: var(--accent);
  font-size: 0.65em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .stat-divider { display: none; }
  .stat-item { min-width: 50%; }
}

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

.services {
  padding: var(--section-gap) var(--pad-x);
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: 2.5rem;
  position: relative;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.service-card:hover {
  background: var(--bg-3);
}
.service-card:hover .service-icon {
  color: var(--accent);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--text-dim);
  transition: color 0.3s;
  margin-bottom: 0.5rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-num {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: auto;
  padding-top: 0.5rem;
}
.service-tags li {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* =========================================
   WORK
   ========================================= */

.work {
  padding: var(--section-gap) var(--pad-x);
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin: 0 auto;
}

.cases {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  min-height: 380px;
}
.case-card.reverse { direction: rtl; }
.case-card.reverse > * { direction: ltr; }

.case-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.case-v1 { background: linear-gradient(135deg, #111 0%, #181a14 100%); }
.case-v2 { background: linear-gradient(135deg, #0e0e12 0%, #12121a 100%); }
.case-v3 { background: linear-gradient(135deg, #111614 0%, #0f1512 100%); }

.case-visual-inner {
  width: 100%;
  max-width: 340px;
}

/* Mockup Window */
.mockup-window {
  background: var(--bg-2);
  border: 1px solid var(--border-h);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mockup-bar {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.mockup-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-h);
}
.mockup-content {
  display: flex;
  height: 180px;
}
.mc-sidebar {
  width: 44px;
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mc-nav-item {
  height: 7px;
  border-radius: 2px;
  background: var(--border-h);
}
.mc-nav-item.active { background: var(--accent); }
.mc-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mc-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 90px;
}
.mc-bar {
  flex: 1;
  height: var(--h);
  background: rgba(232,255,77,0.2);
  border-radius: 2px 2px 0 0;
  transition: height 1s;
}
.mc-bar:nth-child(4) { background: rgba(232,255,77,0.7); }
.mc-line1, .mc-line2 {
  height: 7px;
  border-radius: 2px;
  background: var(--border-h);
}
.mc-line1 { width: 80%; }
.mc-line2 { width: 55%; }

/* Mockup Phone */
.mockup-phone {
  width: 150px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border-h);
  border-radius: 24px;
  padding: 12px 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mockup-phone-screen {
  background: var(--bg-3);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}
.mps-header {
  height: 26px;
  background: rgba(232,255,77,0.15);
  border-radius: 6px;
}
.mps-card {
  height: 60px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.mps-row {
  display: flex;
  gap: 6px;
}
.mps-row div {
  flex: 1;
  height: 36px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.mps-btn {
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  margin-top: auto;
  opacity: 0.8;
}

/* Flow Diagram */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}
.flow-node {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.fn-start { background: var(--surface); border: 1px solid var(--border-h); color: var(--text-muted); }
.fn-mid   { background: rgba(232,255,77,0.12); border: 1px solid rgba(232,255,77,0.3); color: var(--accent); }
.fn-end   { background: var(--surface); border: 1px solid var(--border-h); color: var(--text-muted); }
.fn-branch{ background: var(--surface); border: 1px solid var(--border-h); color: var(--text-dim); font-size: 0.68rem; }
.flow-arrow { color: var(--text-dim); font-size: 1.1rem; }
.flow-sub {
  position: absolute;
  bottom: -62px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.flow-sub-arrow { color: var(--text-dim); }

.case-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.case-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.case-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 420px;
}

.case-metric {
  font-size: 0.85rem;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 0.5rem;
}
.case-metric strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-right: 0.3rem;
}

@media (max-width: 768px) {
  .case-card,
  .case-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .case-visual { min-height: 240px; }
}

/* =========================================
   PROCESS
   ========================================= */

.process {
  padding: var(--section-gap) var(--pad-x);
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
  margin: 0 auto;
  background: var(--bg);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}
.process-step:hover { background: var(--bg-3); }

.process-connector {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--border-h);
  letter-spacing: -0.04em;
  line-height: 1;
}

.process-step:hover .step-number {
  color: var(--accent);
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .process-steps {
    flex-direction: column;
    gap: 1px;
    background: var(--border);
  }
  .process-step {
    border: none;
  }
  .process-connector { display: none; }
}

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

.contact {
  position: relative;
  padding: var(--section-gap) var(--pad-x);
  background: var(--bg-2);
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.contact-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(232,255,77,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.contact-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(232,255,77,0.4);
}

.form-submit {
  align-self: flex-start;
  font-size: 0.95rem;
  padding: 0.9rem 2.25rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
}

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

.footer {
  padding: 3.5rem var(--pad-x);
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  gap: 2rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   SCROLLBAR
   ========================================= */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* =========================================
   SELECTION
   ========================================= */

::selection {
  background: rgba(232,255,77,0.25);
  color: var(--white);
}
