/* ==========================================================================
   Roogoo Card - Premium Fintech Design System
   ========================================================================== */

:root {
  /* Color Palette (Blue & White Theme) */
  --bg-main: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-hover: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-primary: #2563eb;
  --accent-primary-glow: rgba(37, 99, 235, 0.3);
  --accent-secondary: #0ea5e9;
  --accent-gradient: linear-gradient(135deg, #2563eb, #0ea5e9, #0284c7);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(37, 99, 235, 0.2);

  /* Spacing & Sizing */
  --container-width: 1200px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows & Blurs */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px -10px var(--accent-primary-glow);
  --blur-md: blur(12px);
  --blur-lg: blur(24px);
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Ambient Background
   ========================================================================== */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
}

.orb-2 {
  top: 40%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  bottom: -20%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  animation-delay: -10s;
}

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

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: var(--blur-md);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
  filter: blur(10px);
}
.btn-glow:hover::after {
  opacity: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--blur-lg);
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

.nav-tutorial-link {
  color: var(--accent-primary) !important;
  position: relative;
}
.nav-tutorial-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition-fast);
}
.nav-tutorial-link:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tag {
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.03);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.invite-highlight {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.code-box {
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-primary);
  margin-left: 8px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

.real-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 250px;
  border-radius: var(--radius-lg);
  transform: rotateY(-10deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: floatCard 6s ease-in-out infinite alternate;
  z-index: 2;
  margin: 0 auto;
}

.real-card-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: 
    -10px 10px 30px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.2),
    inset 0 0 20px rgba(255,255,255,0.1);
}

.real-card-content {
  position: relative;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateZ(10px);
  color: #ffffff;
}

.real-card-logo {
  height: 28px;
  align-self: flex-end;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.real-card-chip {
  width: 48px;
  height: 36px;
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin-top: -10px;
}
.real-card-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,0,0,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px);
  background-size: 12px 12px;
}

.real-card-number {
  font-family: monospace;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  margin-top: auto;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.real-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

@keyframes floatCard {
  0% { transform: rotateY(-10deg) rotateX(5deg) translateY(0); }
  100% { transform: rotateY(-2deg) rotateX(2deg) translateY(-20px); }
}

/* Floating Elements */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--blur-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.floating-badge i {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.badge-1 {
  top: 15%;
  left: -10%;
  animation: floatBadge1 4s ease-in-out infinite alternate;
}

.badge-2 {
  bottom: 20%;
  right: -5%;
  animation: floatBadge2 5s ease-in-out infinite alternate-reverse;
}

@keyframes floatBadge1 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

@keyframes floatBadge2 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(15px); }
}

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

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

.bento-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 50%);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-lg);
}

.col-span-2 {
  grid-column: span 2;
}

.highlight-card {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(14, 165, 233, 0.3);
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-list li {
  display: flex;
  gap: 16px;
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.feature-list strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.feature-list span {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Mockup UI */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 16px;
  backdrop-filter: var(--blur-md);
  box-shadow: var(--shadow-lg);
}

.app-mockup {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.app-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-dots {
  display: flex;
  gap: 6px;
}
.app-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e2e8f0;
}
.app-dots span:nth-child(1) { background: #ef4444; }
.app-dots span:nth-child(2) { background: #f59e0b; }
.app-dots span:nth-child(3) { background: #10b981; }

.app-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.transaction-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(0,0,0,0.02);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.tx-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: scale(1.02);
}

.tx-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tx-icon.ai { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.tx-icon.app { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.tx-icon.soft { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.tx-info {
  flex-grow: 1;
}
.tx-name { font-weight: 600; margin-bottom: 2px; }
.tx-date { font-size: 0.75rem; color: var(--text-muted); }
.tx-amount { font-weight: 700; font-family: monospace; font-size: 1.125rem; }

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 80px;
}

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

.metric-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  font-family: monospace;
  opacity: 0.9;
}

.metric-item h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.metric-item p {
  color: var(--text-secondary);
}

/* CTA Section */
.cta-box {
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 300px;
}

.invite-code-display {
  background: #ffffff;
  border: 1px dashed rgba(37, 99, 235, 0.3);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.invite-code-display span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.invite-code-display strong {
  font-size: 2rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px 0;
  margin-top: 40px;
  background-color: #ffffff;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 8px;
}

.footer-links {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-desc {
    margin: 0 auto 40px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-tags {
    justify-content: center;
  }
  
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .real-card-wrapper {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .col-span-2 {
    grid-column: span 1;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .real-card-wrapper {
    transform: scale(0.7) rotateY(-10deg) rotateX(5deg);
    transform-origin: center center;
    margin-top: -20px;
    margin-bottom: -20px;
  }
  
  @keyframes floatCard {
    0% { transform: scale(0.7) rotateY(-10deg) rotateX(5deg) translateY(0); }
    100% { transform: scale(0.7) rotateY(-2deg) rotateX(2deg) translateY(-10px); }
  }
  
  .badge-1, .badge-2 {
    display: none;
  }
  
  .cta-box {
    padding: 32px 24px;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
