:root {
  --bg-main: #FBFBFD;
  --bg-card: #FFFFFF;
  --text-main: #1D1D1F;
  --text-muted: #86868B;
  --accent: #007AFF;
  --accent-hover: #0066CC;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.08);
  
  --border: rgba(0, 0, 0, 0.06);
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root.dark-mode {
  --bg-main: #0A0A0A;
  --bg-card: #141414;
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --accent: #0A84FF;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
}

:root.dark-mode .aurora-blob { opacity: 0.12; }
:root.dark-mode .navbar { background: rgba(10, 10, 10, 0.8); }
:root.dark-mode .glass-panel { background: rgba(20, 20, 20, 0.6); }
:root.dark-mode .bento-icon { background: rgba(255,255,255,0.05); }
:root.dark-mode .card-inner { background: #111; border: 1px solid var(--border); }
:root.dark-mode .sd-icon { background: rgba(10, 132, 255, 0.15); }
:root.dark-mode .creative-marquee { background: #0A0A0A; }
:root.dark-mode .btn-primary { color: #0A0A0A; background: var(--text-main); }

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Utilities */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 4rem;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.text-gradient {
  background: linear-gradient(135deg, #FF2E93 0%, #FF8A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: linear-gradient(135deg, #7b2cbf 0%, #c77dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Aurora Background */
.aurora-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: float 20s infinite alternate ease-in-out;
}

.a-blob-1 {
  width: 60vw; height: 60vw;
  background: #FFE2ED;
  top: -20%; left: -10%;
  animation-delay: 0s;
}

.a-blob-2 {
  width: 50vw; height: 50vw;
  background: #EAF2FF;
  top: 10%; right: -10%;
  animation-delay: -5s;
}

.a-blob-3 {
  width: 40vw; height: 40vw;
  background: #FFF0E0;
  bottom: -20%; left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
  100% { transform: translate(-5%, 8%) scale(0.9); }
}

/* Buttons */
.btn-primary {
  background: var(--text-main);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background: #000;
}

.btn-primary-outline {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary-outline:hover {
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.btn-text {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  transition: color 0.3s ease;
}

.btn-text i {
  transition: transform 0.3s ease;
}

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

.btn-text:hover i {
  transform: translateX(4px);
}

/* Forms */
.premium-input {
  padding: 1rem 1.5rem;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.premium-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-main);
}
.nav-links a.btn-primary-outline {
  color: var(--text-main);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  background: var(--border);
}

.mobile-nav-toggle:active {
  transform: scale(0.95);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 2rem;
  position: relative;
}

.pill-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
}

/* Hero Tech Core Visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-core {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.core-center {
  position: absolute;
  width: 100px; height: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 122, 255, 0.2);
  z-index: 10;
}

.core-icon {
  width: 40px; height: 40px;
  color: var(--accent);
}

.core-pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  animation: pulse-core 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse-core {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2); opacity: 0; }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.1); 
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: spin linear infinite;
}

.orbit-1 { width: 220px; height: 220px; animation-duration: 20s; }
.orbit-2 { width: 360px; height: 360px; animation-duration: 30s; animation-direction: reverse; }
.orbit-3 { width: 500px; height: 500px; animation-duration: 40s; }

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-node {
  position: absolute;
  width: 50px; height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: reverse-spin linear infinite;
}
.orbit-1 .orbit-node { animation-duration: 20s; }
.orbit-2 .orbit-node { animation-duration: 30s; animation-direction: reverse; }
.orbit-3 .orbit-node { animation-duration: 40s; }

@keyframes reverse-spin {
  100% { transform: rotate(-360deg); }
}

.n-1 { top: -25px; left: 50%; margin-left: -25px; color: #FF2E93; }
.n-2 { top: 50%; right: -25px; margin-top: -25px; color: #FFBD2E; }
.n-3 { bottom: 30px; left: 20px; color: #00C6FF; }
.n-4 { top: 40px; right: 40px; color: #27C93F; }
.n-5 { bottom: -25px; left: 50%; margin-left: -25px; color: #7b2cbf; }

.orbit-node i { width: 24px; height: 24px; color: var(--text-main); }

/* Creative Marquee */
.creative-marquee {
  padding: 6rem 0 2rem;
  overflow: hidden;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 2rem;
  color: var(--text-main);
  opacity: 0.08;
  transition: opacity 0.4s ease;
  cursor: default;
}

.marquee-track:hover span {
  opacity: 0.2;
}

.marquee-track.left {
  animation: scrollLeft 40s linear infinite;
}

.marquee-track.right {
  animation: scrollRight 40s linear infinite;
}

.outline-text {
  color: transparent !important;
  -webkit-text-stroke: 2px var(--text-main);
}

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

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

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border-radius: 30px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.span-2 {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.bento-content {
  flex: 1;
  z-index: 1;
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.bento-icon {
  width: 50px; height: 50px;
  background: var(--bg-main);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.bento-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: 0;
}

.bento-icon-huge {
  width: 120px; height: 120px;
  opacity: 0.2;
  transform: rotate(-10deg);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.bento-card:hover .bento-icon-huge {
  transform: rotate(0) scale(1.1);
  opacity: 1;
}

/* Feature Sticky Section */
.feature-sticky-container {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.feature-text {
  flex: 1;
  position: sticky;
  top: 150px;
}

.feature-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.feature-text > p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.f-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.f-item i {
  color: var(--accent);
  width: 28px; height: 28px;
  flex-shrink: 0;
  margin-top: 4px;
}

.f-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.f-item p {
  color: var(--text-muted);
}

.feature-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.img-card {
  background: var(--bg-card);
  border-radius: 30px;
  height: 400px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.card-inner {
  height: 100%;
  border-radius: 20px;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
}
.card-inner i {
  width: 64px; height: 64px;
  color: var(--text-main);
  opacity: 0.1;
}

/* Portfolio Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.section-header .section-title {
  margin-bottom: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.p-card {
  cursor: pointer;
}

.p-image {
  height: 400px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  /* margin-bottom: 1.5rem; */
}

.p-img-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-card:hover .p-img-cover {
  transform: scale(1.05);
}

.p-overlay {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.p-card:hover .p-overlay {
  opacity: 1;
  transform: translateY(0);
}

.icon-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
}

.p-meta {
  padding-top: 1.5rem;
}

.p-meta span {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.p-meta h3 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

/* CTA Box */
.cta-box {
  background: var(--bg-card);
  border-radius: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.cta-inputs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.cta-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,122,255,0.05) 0%, transparent 70%);
  z-index: 0;
}

/* Footer */
footer {
  padding: 6rem 2rem 2rem;
  background: transparent;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

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

.footer-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 6rem;
}

.links-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.links-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}
.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}

/* Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .span-2 {
    grid-column: span 1;
    flex-direction: column;
  }
  
  .feature-sticky-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .feature-text {
    position: relative;
    top: 0;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-inputs {
    flex-direction: column;
  }
  
  .premium-input {
    max-width: 100%;
  }
  
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .footer-links {
    gap: 3rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .hero-title { 
    font-size: clamp(2.8rem, 10vw, 4rem); 
    line-height: 1.1;
  }
  .section-container {
    padding: 4rem 1.5rem;
  }
  .grid-2, .grid-3, .bento-grid {
    grid-template-columns: 1fr;
  }
  .tech-core {
    transform: scale(0.75);
  }
  .hero-visual {
    height: 400px;
    overflow: hidden;
  }
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }
  .hero-title { 
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-ctas .btn-primary, .hero-ctas .btn-primary-outline, .hero-ctas .btn-text {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .tech-core {
    transform: scale(0.6);
  }
  .hero-visual {
    height: 320px;
  }
  .marquee-track span {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .cta-box {
    padding: 3rem 1.5rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .legal-links {
    justify-content: center;
  }
}
