/* ============================================
   RISK.SURF - MAIN STYLESHEET
   ============================================ */

/* ===== 1. BASE & RESET ===== */
:root {
  /* Brand Colors */
  --color-risk: #ff0000;      /* Red */
  --color-dot: #FFD119;       /* Yellow */
  --color-surf: #4CBB17;      /* Green */
  --color-primary: #00AEEF;   /* Ocean Blue */
  
  /* Neutral Colors */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E0E0E0;
  --color-bg: #FFFFFF;
  --color-bg-light: #F8FAFC;
  
  /* Status Colors */
  --color-success: #4CBB17;
  --color-warning: #FFD119;
  --color-danger: #ff0000;
  --color-info: #00AEEF;
  
  /* Typography */
  --font-heading: 'Caveat', cursive;
  --font-body: 'Montserrat', sans-serif;
  
  /* Font Sizes */
  --fs-xs: 0.75rem;     /* 12px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-lg: 1.125rem;    /* 18px */
  --fs-xl: 1.25rem;     /* 20px */
  --fs-2xl: 1.5rem;     /* 24px */
  --fs-3xl: 1.875rem;   /* 30px */
  --fs-4xl: 2.25rem;    /* 36px */
  --fs-5xl: 3rem;       /* 48px */
  --fs-6xl: 4rem;       /* 64px */
  
  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-8: 2.5rem;    /* 40px */
  --space-10: 3rem;     /* 48px */
  --space-12: 4rem;     /* 64px */
  --space-16: 6rem;     /* 96px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-full: 9999px; /* Full rounded */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-surf);
}

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

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-12) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-risk), 
    var(--color-dot), 
    var(--color-surf));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  font-family: var(--font-body);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #0095d9;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: rgba(0, 174, 239, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.1);
  z-index: 100;
  transition: var(--transition-1);
  padding: 10px 0 0; /* Increased top padding */
}

.header.scrolled {
  padding: var(--space-2) 0;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 120px; /* Increased from 80px */
  padding: 15px 0; /* Increased padding */
}

.header .logo-img {
  height: 90px; /* Significantly increased from 50px */
  width: auto;
  max-width: none; /* Remove any width constraints */
  transition: var(--transition-1);
  object-fit: contain;
  margin: 0; /* Remove any margins */
}

.header.active .logo-img {
  height: 70px; /* Increased from 45px */
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-normal);
  padding: 5px 0; /* Add some padding */
}

.logo:hover {
  transform: translateY(-2px);
}

.logo .risk { color: var(--color-risk); }
.logo .dot { 
  color: var(--color-dot);
  margin: 0 -4px;
}
.logo .surf { color: var(--color-surf); }
.logo .tm {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--color-text-light);
}

/* Navigation */
.navbar {
  display: flex;
  align-items: center;
}

.navbar-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-item {
  margin: 0 var(--space-2);
}

.navbar-link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-normal);
  border-radius: var(--radius-full);
}

.navbar-link:hover,
.navbar-link:focus,
.navbar-link.active {
  color: var(--color-primary);
  background-color: rgba(0, 174, 239, 0.1);
}

/* Mobile Menu Toggle */
.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

.menu-icon,
.close-icon {
  font-size: var(--fs-2xl);
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}

.close-icon {
  display: none;
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  .nav-toggle-btn {
    display: block;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    background-color: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-16) var(--space-6) var(--space-6);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }
  
  .navbar.active {
    transform: translateX(-100%);
  }
  
  .navbar-list {
    flex-direction: column;
    width: 100%;
  }
  
  .navbar-item {
    margin: 0;
    width: 100%;
  }
  
  .navbar-link {
    display: block;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  
  .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--space-6);
  }
  
  .btn {
    width: 100%;
    margin: var(--space-2) 0;
  }
  
  .btn-outline {
    margin-left: 0;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-20) + var(--space-12)) 0 var(--space-12);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%2300AEEF" fill-opacity="0.05" fill-rule="evenodd"/></svg>');
  opacity: 0.6;
  z-index: -1;
}

/* Hero Animated Background Layer */
.rs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rs-hero-bg::before,
.rs-hero-bg::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  opacity: 0.55;
  filter: blur(0px);
}

.rs-hero-bg::before {
  width: 28rem;
  height: 28rem;
  right: -8rem;
  bottom: -10rem;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.70), rgba(76, 187, 23, 0.65), rgba(255, 0, 0, 0.55));
  animation: rs-gradient-fade 8s ease-in-out 3s infinite alternate;
}

.rs-hero-bg::after {
  width: 10rem;
  height: 10rem;
  left: 2rem;
  top: -2rem;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.55), rgba(255, 209, 25, 0.55), rgba(0, 174, 239, 0.55));
  animation: rs-gradient-fade-alt 6s ease-in-out 3s infinite alternate;
}

.rs-arrow {
  position: absolute;
  opacity: 0.45;
  z-index: 0;
}

.rs-arrow--top {
  top: 0;
  left: -5rem;
}

.rs-arrow--bottom {
  bottom: 0;
  right: 3rem;
}

.rs-geo-arrow {
  fill: none;
  stroke: rgba(0, 174, 239, 0.85);
  stroke-width: 2;
  stroke-miterlimit: 10;
}

.rs-dotted-circle {
  position: absolute;
  top: 2rem;
  right: 2rem;
  opacity: 0.25;
  animation: rs-rotation 38s linear infinite;
}

.rs-draw-in {
  stroke-dasharray: 1000;
  stroke-dashoffset: 10;
  animation: rs-draw 15s ease-in-out alternate infinite;
}

.rs-item-to {
  animation-duration: 10s;
  animation-iteration-count: infinite;
  transform-origin: bottom;
}

.rs-bounce-1 { animation-name: rs-bounce-1; animation-timing-function: ease; }
.rs-bounce-2 { animation-name: rs-bounce-2; animation-timing-function: ease; }
.rs-bounce-3 { animation-name: rs-bounce-3; animation-timing-function: ease; }

@keyframes rs-draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes rs-bounce-1 {
  0% { transform: translateY(0); }
  50% { transform: translateY(50px); }
  100% { transform: translateY(0); }
}

@keyframes rs-bounce-2 {
  0% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0); }
}

@keyframes rs-bounce-3 {
  0% { transform: translateY(0); }
  50% { transform: translateY(30px); }
  100% { transform: translateY(0); }
}

@keyframes rs-rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rs-gradient-fade {
  from { transform: translate(10%, -10%) rotate(0deg); }
  to { transform: translate(50%, -50%) rotate(360deg); }
}

@keyframes rs-gradient-fade-alt {
  from { transform: translate(-20%, 20%) rotate(0deg); }
  to { transform: translate(-60%, 60%) rotate(360deg); }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../images/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
}

.brand-text sup {
  font-size: 0.55em;
  line-height: 0;
  top: -0.35em;
  position: relative;
  color: var(--color-dot);
}

.brand-text .risk { color: var(--color-risk); }
.brand-text .dot { color: var(--color-dot); }
.brand-text .surf { color: var(--color-surf); }

.logo-img-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #00aee0 0%, #0088b3 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.logo:hover .logo-img-container {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
  position: relative;
  z-index: 2;
  color: white;
}

/* Hero Wave Heading */
.wave-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.wave-text span {
  display: inline-block;
  animation: rs-wave 2s ease-in-out infinite;
  will-change: transform;
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.15s; }
.wave-text span:nth-child(3) { animation-delay: 0.3s; }
.wave-text span:nth-child(4) { animation-delay: 0.45s; }
.wave-text span:nth-child(5) { animation-delay: 0.6s; }

.wave-text .risk { color: var(--color-risk); }
.wave-text .surf { color: var(--color-surf); }
.wave-text .waves { color: var(--color-primary); }
.wave-text .outpacing { color: var(--color-dot); }
.wave-text .competition { color: rgba(255, 255, 255, 0.95); }

@keyframes rs-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .wave-text span {
    animation: none;
  }
}

.hero-banner {
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  padding: 40px 0 30px 30px;
  z-index: 2;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  min-height: 500px;
  overflow: visible;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  border: 10px solid rgba(255, 255, 255, 0.1);
  max-width: 380px;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
  transform: scale(0.95);
}

/* Rotating Text Circle */
.rotate-circle {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 15s linear infinite;
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.rotate-circle svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rotate-circle text {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  fill: var(--color-primary);
  font-family: var(--font-body);
}

.rotate-circle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.6);
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.rotate-circle-icon ion-icon {
  font-size: 16px;
  --ionicon-stroke-width: 40px;
  animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Absolute Elements */
.abs-img {
  position: absolute;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.abs-img-1 {
  top: -30px;
  left: -30px;
  width: 200px;
  height: auto;
  z-index: 1;
  border: 5px solid white;
}

.abs-img-1:hover {
  transform: translateY(-5px);
}

/* Wave Background */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: url('../images/wave-bg.svg') repeat-x;
  background-size: 1000px 150px;
  animation: wave 25s linear infinite;
  z-index: 1;
}

@keyframes wave {
  0% { background-position-x: 0; }
  100% { background-position-x: 1000px; }
}

.hero-title {
  font-size: var(--fs-5xl);
  margin-bottom: var(--space-4);
  line-height: 1.1;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-description {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 700px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: var(--space-16) 0;
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
  border: 1px solid var(--color-border);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #00c6ff);
  border-radius: 50%;
  color: white;
  font-size: var(--fs-3xl);
}

.feature-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

.feature-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-1); }
.mb-1 { margin-bottom: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mb-2 { margin-bottom: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mb-3 { margin-bottom: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-5 { margin-bottom: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-6 { margin-bottom: var(--space-6); }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Wave Background */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%2300AEEF" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,141.56,72.19V0Z" fill="%2300AEEF" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%2300AEEF"/></svg>');
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --fs-5xl: 2.5rem;  /* 40px */
    --fs-4xl: 2rem;    /* 32px */
    --fs-3xl: 1.75rem; /* 28px */
    --fs-2xl: 1.5rem;  /* 24px */
    --fs-xl: 1.25rem;  /* 20px */
    --fs-lg: 1.125rem; /* 18px */
  }

  .header {
    padding-top: 14px;
  }

  .header .container {
    min-height: 84px;
    padding: 12px 0 8px;
  }

  .logo-img-container {
    width: 56px;
    height: 56px;
  }

  .brand-text {
    font-size: 2.2rem;
  }
  
  .hero {
    padding: calc(var(--space-16) + var(--space-10)) 0 var(--space-8);
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
  }

  .wave-text {
    justify-content: center;
  }

  .hero-banner {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0;
    margin-top: 12px;
    min-height: auto;
    order: 2;
  }

  .hero-img {
    max-width: 320px;
    width: 100%;
    transform: none;
  }
  
  .hero-title {
    font-size: var(--fs-4xl);
    line-height: 1.15;
  }
  
  .hero-subtitle {
    font-size: var(--fs-lg);
    margin-top: var(--space-3);
  }
  
  .hero-description {
    font-size: var(--fs-base);
    margin-top: var(--space-4);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .rotate-circle {
    width: 210px;
    height: 210px;
    bottom: -16px;
    right: -16px;
  }

  .rotate-circle text {
    font-size: 18px;
    letter-spacing: 0.8px;
  }

  .rotate-circle-icon {
    width: 38px;
    height: 38px;
  }

  .rotate-circle-icon ion-icon {
    font-size: 14px;
  }

  .rs-arrow {
    display: none;
  }

  .rs-dotted-circle {
    width: 220px;
    height: 220px;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0.14;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    padding-top: 16px;
  }

  .header .container {
    min-height: 78px;
    padding-top: 12px;
  }

  .logo-img-container {
    width: 52px;
    height: 52px;
  }

  .brand-text {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

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

  .hero {
    padding: calc(var(--space-16) + var(--space-12)) 0 var(--space-8);
  }

  .hero-content {
    gap: 22px;
  }

  .hero-img {
    max-width: 280px;
  }

  .rotate-circle {
    width: 170px;
    height: 170px;
    bottom: -10px;
    right: -10px;
    background: rgba(255, 255, 255, 0.10);
  }

  .rotate-circle text {
    font-size: 15px;
    letter-spacing: 0.6px;
  }

  .rs-dotted-circle {
    opacity: 0.1;
  }
}

@media (max-width: 360px) {
  .header {
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
  }

  .header .container {
    min-height: 76px;
    padding-top: 14px;
  }

  .logo-container {
    gap: 10px;
  }

  .logo-img-container {
    width: 48px;
    height: 48px;
  }

  .brand-text {
    font-size: 1.8rem;
  }
}
