/* ==========================================================================
   CoreRift — Design System & Stylesheet (corerift.tech)
   Aesthetic: Clean Modern Studio (Inspired by Clay.global, Metalab & Vercel)
   ========================================================================== */

:root {
  --bg-page: #fbfbfd;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f7;
  
  --text-main: #09090b;
  --text-muted: #52525b;
  --text-light: #71717a;
  
  --brand-blue: #0066ff;
  --brand-blue-hover: #0052cc;
  --brand-blue-light: #e6f0ff;
  --brand-emerald: #10b981;
  --brand-emerald-light: #ecfdf5;

  --border-light: #e4e4e7;
  --border-subtle: #f1f1f4;
  --border-focus: #0066ff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 50px -15px rgba(0, 0, 0, 0.08);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1220px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-accent {
  color: var(--brand-blue);
}

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

.nav-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--text-main);
}

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

.btn-header-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-header-wa:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
}

.btn-header-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--text-main);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-header-primary:hover {
  background: var(--brand-blue);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* Hero Section */
.hero-section {
  padding-top: 80px;
  padding-bottom: 70px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  max-width: 960px;
  margin: 0 auto 24px;
  color: var(--text-main);
}

.highlight-blue {
  color: var(--brand-blue);
}

.hero-subtext {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-2px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
  transition: gap 0.2s ease;
}

.btn-text:hover {
  gap: 12px;
}

.arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow, .btn-header-primary:hover .arrow {
  transform: translateX(3px);
}

/* Proof Bar */
.hero-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 36px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.proof-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.proof-number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.proof-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.proof-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 1px;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* Section Headings */
.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.12;
  color: var(--text-main);
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
}

/* Work / Selected Projects */
.work-section {
  padding-block: 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.work-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.work-media {
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.work-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-media img {
  transform: scale(1.04);
}

.work-hover-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(9, 9, 11, 0.85);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.work-card:hover .work-hover-badge {
  opacity: 1;
  transform: translateY(0);
}

.work-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pill-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
}

.pill-live {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 4px;
}

.pill-tech {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 4px 10px;
  border-radius: 4px;
}

.work-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 12px;
}

.work-title a:hover {
  color: var(--brand-blue);
}

.work-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.work-tags span {
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 4px;
}

.work-link-row {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.link-bold {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.link-bold:hover {
  color: var(--brand-blue);
}

/* Services Section */
.services-section {
  padding-block: 80px;
  border-top: 1px solid var(--border-light);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease;
}

.service-row:first-child {
  border-top: 1px solid var(--border-light);
}

.service-row:hover {
  background-color: rgba(248, 250, 252, 0.6);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
}

.service-main h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.service-main p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.service-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Why CoreRift / About Section */
.about-section {
  padding-block: 60px;
}

.about-box {
  background: #09090b;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 64px;
}

.about-header {
  max-width: 600px;
  margin-bottom: 50px;
}

.about-header .section-kicker {
  color: #60a5fa;
}

.about-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

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

.pillar-card {
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  font-size: 24px;
  margin-bottom: 16px;
}

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.65;
}

/* Process Section */
.process-section {
  padding-block: 80px;
  border-top: 1px solid var(--border-light);
}

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

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding-block: 80px;
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 12px 0 16px;
  color: var(--text-main);
}

.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.channel-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.channel-card.wa {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.channel-card.wa:hover {
  border-color: #4ade80;
}

.channel-icon {
  font-size: 20px;
}

.channel-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  display: block;
}

.channel-val {
  font-size: 14px;
  color: var(--text-main);
}

.channel-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--text-light);
}

.contact-socials {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-socials a {
  font-weight: 600;
  color: var(--brand-blue);
}

.contact-socials a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.clean-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-instructions {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.input-group input, .input-group select, .input-group textarea {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-page);
  transition: all 0.2s ease;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.w-full {
  width: 100%;
}

.form-privacy-note {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 14px;
}

/* Footer */
.site-footer {
  padding-top: 60px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border-light);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 50px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 10px 0 6px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-col strong {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-light);
}

.back-top-link:hover {
  color: var(--text-main);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-proof-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .proof-divider {
    display: none;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card-wide {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 50px 1.5fr;
  }
  .service-tags {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 68px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .btn-header-wa {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .section-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .about-box {
    padding: 36px 24px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
  .footer-links-group {
    grid-template-columns: 1fr;
  }
  .hero-proof-bar {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
