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

:root {
  --black: #0e0d0b;
  --cream: #f5f0e8;
  --warm: #e8dfc8;
  --accent: #d94f2b;
  --accent-light: #f0a98a;
  --gold: #c9a84c;
  --text-muted: #7a7368;
  --serif: 'DM Serif Display', Georgia, serif;
  --display: 'Bebas Neue', sans-serif;
  --body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--black);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: var(--cream);
}

.logo {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--black);
  text-decoration: none;
}
.logo span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
nav ul a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--accent); }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 3rem 5rem 3rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--black);
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-title .italic-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  letter-spacing: 0;
  display: block;
  color: var(--accent);
  line-height: 1.1;
}

.hero-sub {
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 380px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #b93d1e; transform: translateY(-2px); }

.btn-ghost {
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 0.9rem; }
.btn-ghost::after { content: '\2192'; }

.hero-right {
  position: relative;
  background: var(--black);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.2s 0.3s forwards;
}

.hero-right-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-number {
  font-family: var(--display);
  font-size: 28vw;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
  position: absolute;
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: right;
}

.stat-num {
  font-family: var(--display);
  font-size: 3.5rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1;
}
.stat-num span { color: var(--accent); font-size: 2rem; }
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-top: 0.2rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* TICKER */
.ticker {
  background: var(--accent);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 0;
  animation: ticker 22s linear infinite;
}
.ticker-item {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #fff;
  padding: 0 2.5rem;
}
.ticker-dot {
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  line-height: 1;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ABOUT */
.section { padding: 7rem 3rem; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.about-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
  color: var(--black);
}
.about-title em { font-style: italic; color: var(--accent); }

.about-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.about-visual {
  position: relative;
  height: 480px;
}
.about-box-1 {
  position: absolute;
  top: 0; right: 0;
  width: 75%;
  height: 75%;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.about-box-1-text {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  text-transform: uppercase;
}
.about-box-1-text strong {
  display: block;
  font-size: 3rem;
  color: var(--accent-light);
  line-height: 1;
  font-weight: 400;
}
.about-box-2 {
  position: absolute;
  bottom: 0; left: 0;
  width: 55%;
  height: 42%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.about-box-2-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--black);
  text-align: center;
  line-height: 1.5;
}

/* SERVICES */
.services { background: var(--black); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.services-title {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--cream);
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.services-title .accent { color: var(--accent); }

.services-intro {
  max-width: 280px;
  font-size: 0.9rem;
  color: rgba(245,240,232,0.45);
  line-height: 1.7;
  text-align: right;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.service-card {
  background: var(--black);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { background: #181614; }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.service-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.4);
  line-height: 1.7;
}

.service-card .btn-primary {
  margin-top: 1.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.68rem;
}

/* PROCESS */
.process-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 4rem;
  max-width: 500px;
}
.process-title em { font-style: italic; color: var(--accent); }

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

.step {
  padding: 2rem 1.5rem;
  background: var(--warm);
  position: relative;
}
.step:nth-child(2) { background: #ece4d0; }
.step:nth-child(3) { background: #e2d8c2; }
.step:nth-child(4) { background: var(--black); }
.step:nth-child(4) .step-num,
.step:nth-child(4) .step-title,
.step:nth-child(4) .step-desc { color: var(--cream); }
.step:nth-child(4) .step-num { color: var(--accent-light); }

.step-num {
  font-family: var(--display);
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* CONTACT */
.contact { background: var(--accent); }

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

.contact-title {
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: #fff;
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.contact-title .italic-block {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.6em;
  letter-spacing: 0;
  display: block;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.2rem;
}

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

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

.form-input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.9rem 1.1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-input::placeholder { color: rgba(255,255,255,0.5); }
.form-input:focus { border-color: #fff; background: rgba(255,255,255,0.18); }

textarea.form-input { min-height: 100px; resize: none; }

.form-submit {
  background: #fff;
  color: var(--accent);
  border: none;
  padding: 1rem 2rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--cream); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--black);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--cream);
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(245,240,232,0.25);
  letter-spacing: 0.1em;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ APP DEVELOPMENT PAGE ============ */
.page-header {
  background: var(--black);
  padding: 10rem 3rem 5rem;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: 0.02em;
  max-width: 780px;
}
.page-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-light);
}
.page-sub {
  margin-top: 1.5rem;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245,240,232,0.6);
}
.platform-chips {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.platform-chip {
  border: 1px solid rgba(245,240,232,0.25);
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
}

.apps-section { background: var(--cream); padding: 6rem 3rem; }
.apps-section-header { margin-bottom: 3.5rem; max-width: 640px; }
.apps-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--black);
  line-height: 1.15;
}
.apps-title em { font-style: italic; color: var(--accent); }
.apps-intro {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.app-list { display: flex; flex-direction: column; }
.app-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(14,13,11,0.12);
  align-items: start;
}
.app-row:first-child { padding-top: 0; }
.app-row:last-child { border-bottom: none; }

.app-icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 12px 28px rgba(14,13,11,0.18);
  flex-shrink: 0;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-icon-generic {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(14,13,11,0.18);
  flex-shrink: 0;
}
.app-icon-generic svg { width: 52px; height: 52px; }

.app-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--black);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.app-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}
.app-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
}
.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.3rem;
}
.app-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.app-link:hover { color: var(--accent); border-color: var(--accent); }
.app-link.muted { color: var(--text-muted); border-color: rgba(122,115,104,0.4); }
.app-link.muted:hover { color: var(--accent); border-color: var(--accent); }

.cta-band {
  background: var(--accent);
  padding: 5rem 3rem;
  text-align: center;
}
.cta-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 1.8rem;
}
.btn-white {
  background: #fff;
  color: var(--accent);
  padding: 0.9rem 2.2rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  nav ul { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 6rem 1.5rem 3rem; }
  .hero-right { height: 320px; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .services-intro { text-align: left; }
  .section { padding: 4rem 1.5rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 8rem 1.5rem 3rem; }
  .apps-section { padding: 4rem 1.5rem; }
  .app-row { grid-template-columns: 1fr; }
  .app-icon, .app-icon-generic { width: 96px; height: 96px; }
  .cta-band { padding: 4rem 1.5rem; }
}
