/* ========================================================================
   Rocket Timer - Product Landing Page Styles
   Tailwind CSS v4 handles utility classes via CDN.
   This file covers @font-face, animations, and custom effects.

   Color palette (from app logo):
   - Primary bg:   #0a3d91
   - Darker:       #071e4a
   - Lighter:      #1a5bc4
   - Green accent:  #6abf40
   - Orange accent: #f7941d
   - Red accent:    #e83c2e
   ======================================================================== */

/* ------------------------------------------------------------------------
   1. @font-face Declarations
   ------------------------------------------------------------------------ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------------
   2. Base Styles
   ------------------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(106, 191, 64, 0.3);
  color: #fff;
}

/* ------------------------------------------------------------------------
   3. Scroll-Triggered Animations
   ------------------------------------------------------------------------ */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ------------------------------------------------------------------------
   4. Hero Floating Shapes
   ------------------------------------------------------------------------ */

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

@keyframes float-delayed {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

.hero-shape {
  animation: float 6s ease-in-out infinite;
}

.hero-shape-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}

.hero-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* ------------------------------------------------------------------------
   5. Navigation Transitions
   ------------------------------------------------------------------------ */

.nav-scrolled {
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.6, 0.1, 0.68, 0.53);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ------------------------------------------------------------------------
   6. Code Block Styling
   ------------------------------------------------------------------------ */

.code-block {
  background: #060e1e;
  border: 1px solid #152a4d;
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #b8c9e0;
}

.code-block .comment { color: #5a7aa0; }
.code-block .string  { color: #6abf40; }
.code-block .command { color: #f7941d; }
.code-block .flag    { color: #1a8a7a; }
.code-block .url     { color: #b8c9e0; }

/* ------------------------------------------------------------------------
   7. Screenshot Carousel
   ------------------------------------------------------------------------ */

.carousel-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: center;
  flex-shrink: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #152a4d;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: #6abf40;
  width: 24px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------------
   8. Platform Card Highlight
   ------------------------------------------------------------------------ */

.platform-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(106, 191, 64, 0.3);
}

.platform-card.recommended {
  border-color: #6abf40;
  box-shadow: 0 0 30px rgba(106, 191, 64, 0.15);
}

/* ------------------------------------------------------------------------
   9. Feature Card Hover
   ------------------------------------------------------------------------ */

.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------------------------------
   10. Ghost Button
   ------------------------------------------------------------------------ */

.btn-ghost {
  border: 1.5px solid rgba(248, 250, 252, 0.3);
  background: transparent;
  transition: all 0.3s;
}

.btn-ghost:hover {
  background: rgba(248, 250, 252, 1);
  color: #071e4a;
}

/* ------------------------------------------------------------------------
   11. Green CTA Button
   ------------------------------------------------------------------------ */

.btn-primary {
  background: linear-gradient(135deg, #6abf40, #4da528);
  box-shadow: 0 4px 15px rgba(106, 191, 64, 0.3);
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(106, 191, 64, 0.4);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------------
   12. Decorative Feature Number
   ------------------------------------------------------------------------ */

.feature-number {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: rgba(106, 191, 64, 0.08);
  position: absolute;
  top: -20px;
  left: -10px;
  user-select: none;
  pointer-events: none;
}

/* ------------------------------------------------------------------------
   13. Custom Scrollbar (Webkit)
   ------------------------------------------------------------------------ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050d1a;
}

::-webkit-scrollbar-thumb {
  background: #152a4d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1a5bc4;
}

/* ------------------------------------------------------------------------
   14. Responsive Overrides
   ------------------------------------------------------------------------ */

@media (max-width: 768px) {
  .feature-number {
    font-size: 80px;
  }
}

@media (max-width: 640px) {
  .code-block {
    padding: 16px;
    font-size: 13px;
  }
}
