/* ============================================
   DRILL — Website Styles
   Inspired by Vercel + Anthropic aesthetics
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --border: #1e1e1e;
  --border-hover: #333;
  --text: #ededed;
  --text-secondary: #aaa;
  --text-muted: #555;
  --accent: #5bbfba;
  --accent-dim: #5bbfba12;
  --gradient-start: #ededed;
  --gradient-end: #5bbfba;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- Grain texture overlay --- */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.logo-mark {
  color: var(--accent);
  font-size: 18px;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:first-child {
  transform: rotate(45deg) translate(2px, 3px);
}

.mobile-menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(2px, -3px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 232, 123, 0.15);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* --- Marquee --- */
.marquee-wrapper {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll-marquee 25s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  padding-right: 32px;
  flex-shrink: 0;
}

.marquee-content span {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.marquee-dot {
  color: var(--accent) !important;
  font-size: 8px !important;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
}

.section-dark {
  background: var(--bg-elevated);
}

.section-accent {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

/* --- Approach --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.approach-card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.3s;
}

.approach-card:hover {
  background: var(--bg-elevated);
}

.approach-number {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
}

.approach-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.approach-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 232, 123, 0.1);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}

/* --- Industries --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s;
}

.industry-card:hover {
  border-color: var(--accent);
}

.industry-icon {
  display: block;
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 16px;
}

.industry-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Differentiator --- */
.diff-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.diff-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.diff-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.diff-features {
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.diff-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.check {
  color: var(--accent);
  font-weight: 600;
}

/* --- Valores --- */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.valor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: border-color 0.3s;
}

.valor-card:hover {
  border-color: var(--border-hover);
}

.valor-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.valor-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.team-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  color: var(--bg);
  margin-bottom: 20px;
}

.team-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--mono);
  display: block;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 32px;
  font-style: italic;
}

/* --- Contact --- */
.contact-content {
  max-width: 100%;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.contact-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.3s, transform 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 160px;
}

.contact-value {
  font-size: 15px;
  color: var(--text);
  flex: 1;
}

.contact-arrow {
  color: var(--accent);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}

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

.contact-social {
  margin-top: 32px;
}

.social-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 8px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Animations (scroll reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Interactive grid background --- */
.grid-dot {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.grid-dot.active {
  opacity: 0.55;
}

/* --- Cursor Glow (desktop only) --- */
.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 191, 186, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
}
.cursor-glow.active {
  opacity: 1;
  transition: opacity 0.4s;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ededed);
  z-index: 10001;
  width: 0%;
  will-change: width;
}

/* --- Section Divider Lines --- */
.section-line {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  height: 1px;
  overflow: visible;
}
.section-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1), left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-line.visible::before {
  width: 100%;
  left: 0;
}

/* --- Floating Dots --- */
.floating-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.floating-dot {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.45; }
  90% { opacity: 0.45; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* --- Text Scramble --- */
.scramble-char {
  display: inline-block;
  color: var(--accent);
}

/* --- Magnetic Card Glow --- */
.magnetic-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease-out, border-color 0.3s;
}
.magnetic-card::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 191, 186, 0.1) 0%, transparent 70%);
  pointer-events: none;
  left: var(--mx, -300px);
  top: var(--my, -300px);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.magnetic-card:hover::after {
  opacity: 1;
}
.magnetic-card:hover {
  border-color: rgba(91, 191, 186, 0.25);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

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

  .industries-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-label {
    min-width: auto;
  }

  .contact-arrow {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 8px;
  }

  .diff-features {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .contact-value {
    font-size: 13px;
  }
}
