/* 
 * Rutevenn Design System
 * Inspired by Scandinavian design: warm, honest, functional
 * With a human touch that feels handcrafted, not AI-generated
 */

 @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

 :root {
     /* Warm, earthy Norwegian palette */
     --forest: #2D4A3E;
     --forest-light: #3D5E4F;
     --fjord: #4A6FA5;
     --fjord-light: #6B8FBF;
     --sky: #87ACCD;
     --sunset: #E8927C;
     --sunset-light: #F0A996;
     --birch: #F5F1EB;
     --cream: #FFFBF5;
     --stone: #8B8680;
     --charcoal: #2C2C2C;
     --moss: #7A9E7E;
     --berry: #9B4F6A;
     
     /* Typography */
     --font-display: 'DM Serif Display', Georgia, serif;
     --font-body: 'Source Sans 3', -apple-system, sans-serif;
     
     /* Spacing */
     --space-xs: 0.5rem;
     --space-sm: 1rem;
     --space-md: 1.5rem;
     --space-lg: 2.5rem;
     --space-xl: 4rem;
     --space-2xl: 6rem;
     
     /* Transitions */
     --transition-fast: 150ms ease;
     --transition-medium: 300ms ease;
     --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
     
     /* Shadows - soft, natural */
     --shadow-sm: 0 2px 8px rgba(45, 74, 62, 0.08);
     --shadow-md: 0 4px 20px rgba(45, 74, 62, 0.12);
     --shadow-lg: 0 8px 40px rgba(45, 74, 62, 0.16);
     
     /* Border radius - slightly organic */
     --radius-sm: 8px;
     --radius-md: 16px;
     --radius-lg: 24px;
     --radius-xl: 40px;
 }
 
 /* Reset */
 *, *::before, *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }
 
 html {
     scroll-behavior: smooth;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
 }
 
 body {
     font-family: var(--font-body);
     font-size: 18px;
     line-height: 1.7;
     color: var(--charcoal);
     background-color: var(--cream);
     overflow-x: hidden;
 }
 
 /* Selection */
 ::selection {
     background: var(--sunset-light);
     color: var(--charcoal);
 }
 
 /* Typography */
 h1, h2, h3, h4 {
     font-family: var(--font-display);
     font-weight: 400;
     line-height: 1.2;
     color: var(--forest);
 }
 
 h1 {
     font-size: clamp(2.5rem, 6vw, 4rem);
     letter-spacing: -0.02em;
 }
 
 h2 {
     font-size: clamp(2rem, 4vw, 3rem);
     letter-spacing: -0.01em;
 }
 
 h3 {
     font-size: clamp(1.5rem, 3vw, 2rem);
 }
 
 p {
     max-width: 65ch;
 }
 
 a {
     color: var(--fjord);
     text-decoration: none;
     transition: color var(--transition-fast);
 }
 
 a:hover {
     color: var(--forest);
 }
 
 /* Container */
 .container {
     width: 100%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 var(--space-md);
 }
 
 .container--narrow {
     max-width: 800px;
 }
 
 .container--wide {
     max-width: 1400px;
 }
 
 /* Navigation */
 .nav {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 1000;
     padding: var(--space-sm) 0;
     background: rgba(255, 251, 245, 0.9);
     backdrop-filter: blur(20px);
     border-bottom: 1px solid rgba(45, 74, 62, 0.1);
     transition: all var(--transition-medium);
 }
 
 .nav.scrolled {
     padding: var(--space-xs) 0;
     box-shadow: var(--shadow-sm);
 }
 
 .nav__inner {
     display: flex;
     align-items: center;
     justify-content: space-between;
 }
 
 .nav__logo {
     display: flex;
     align-items: center;
     gap: var(--space-xs);
     font-family: var(--font-display);
     font-size: 1.5rem;
     color: var(--forest);
     text-decoration: none;
 }
 
 .nav__logo svg {
     width: 36px;
     height: 36px;
 }
 
 .nav__links {
     display: flex;
     align-items: center;
     gap: var(--space-lg);
     list-style: none;
 }
 
 .nav__link {
     font-size: 1rem;
     font-weight: 500;
     color: var(--charcoal);
     text-decoration: none;
     position: relative;
     padding: var(--space-xs) 0;
 }
 
 .nav__link::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0;
     height: 2px;
     background: var(--sunset);
     transition: width var(--transition-medium);
 }
 
 .nav__link:hover::after,
 .nav__link.active::after {
     width: 100%;
 }
 
 .nav__cta {
     display: inline-flex;
     align-items: center;
     gap: var(--space-xs);
     padding: var(--space-xs) var(--space-md);
     font-weight: 600;
     color: white;
     background: var(--forest);
     border-radius: var(--radius-xl);
     transition: all var(--transition-medium);
 }
 
 .nav__cta:hover {
     background: var(--forest-light);
     color: white;
     transform: translateY(-2px);
     box-shadow: var(--shadow-md);
 }
 
 /* Mobile menu */
 .nav__toggle {
     display: none;
     flex-direction: column;
     gap: 5px;
     padding: 10px;
     background: none;
     border: none;
     cursor: pointer;
 }
 
 .nav__toggle span {
     width: 24px;
     height: 2px;
     background: var(--forest);
     transition: all var(--transition-fast);
 }
 
 @media (max-width: 768px) {
     .nav__toggle {
         display: flex;
     }
     
     .nav__links {
         position: fixed;
         top: 70px;
         left: 0;
         right: 0;
         bottom: 0;
         flex-direction: column;
         justify-content: flex-start;
         padding-top: var(--space-xl);
         gap: var(--space-md);
         background: var(--cream);
         opacity: 0;
         visibility: hidden;
         transform: translateY(-20px);
         transition: all var(--transition-medium);
     }
     
     .nav__links.open {
         opacity: 1;
         visibility: visible;
         transform: translateY(0);
     }
     
     .nav__link {
         font-size: 1.5rem;
     }
 }
 
 /* Buttons */
 .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: var(--space-xs);
     padding: var(--space-sm) var(--space-lg);
     font-family: var(--font-body);
     font-size: 1rem;
     font-weight: 600;
     text-decoration: none;
     border: none;
     border-radius: var(--radius-xl);
     cursor: pointer;
     transition: all var(--transition-medium);
 }
 
 .btn--primary {
     color: white;
     background: var(--forest);
     box-shadow: var(--shadow-sm);
 }
 
 .btn--primary:hover {
     background: var(--forest-light);
     color: white;
     transform: translateY(-3px);
     box-shadow: var(--shadow-md);
 }
 
 .btn--secondary {
     color: var(--forest);
     background: white;
     border: 2px solid var(--forest);
 }
 
 .btn--secondary:hover {
     background: var(--forest);
     color: white;
 }
 
 .btn--ghost {
     color: var(--forest);
     background: transparent;
 }
 
 .btn--ghost:hover {
     background: rgba(45, 74, 62, 0.1);
 }
 
 .btn--large {
     padding: var(--space-md) var(--space-xl);
     font-size: 1.125rem;
 }
 
 /* App store badges */
 .app-badges {
     display: flex;
     gap: var(--space-sm);
     flex-wrap: wrap;
 }
 
 .app-badge {
     height: 54px;
     border-radius: var(--radius-sm);
     transition: transform var(--transition-fast);
 }
 
 .app-badge:hover {
     transform: scale(1.05);
 }
 
 /* Cards */
 .card {
     background: white;
     border-radius: var(--radius-lg);
     padding: var(--space-lg);
     box-shadow: var(--shadow-sm);
     transition: all var(--transition-medium);
 }
 
 .card:hover {
     transform: translateY(-5px);
     box-shadow: var(--shadow-md);
 }
 
 .card--highlight {
     border: 2px solid var(--sunset);
 }
 
 /* Sections */
 section {
     padding: var(--space-2xl) 0;
 }
 
 .section-label {
     display: inline-block;
     font-size: 0.875rem;
     font-weight: 600;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     color: var(--sunset);
     margin-bottom: var(--space-sm);
 }
 
 /* Footer */
 .footer {
     background: var(--forest);
     color: white;
     padding: var(--space-2xl) 0 var(--space-lg);
 }
 
 .footer__grid {
     display: grid;
     grid-template-columns: 2fr 1fr 1fr 1fr;
     gap: var(--space-xl);
     margin-bottom: var(--space-xl);
 }
 
 .footer__brand {
     max-width: 300px;
 }
 
 .footer__logo {
     display: flex;
     align-items: center;
     gap: var(--space-xs);
     font-family: var(--font-display);
     font-size: 1.5rem;
     color: white;
     margin-bottom: var(--space-sm);
 }
 
 .footer__logo svg {
     width: 32px;
     height: 32px;
 }
 
 .footer__tagline {
     opacity: 0.8;
     font-size: 1rem;
     line-height: 1.6;
 }
 
 .footer__title {
     font-family: var(--font-body);
     font-size: 0.875rem;
     font-weight: 600;
     letter-spacing: 0.05em;
     text-transform: uppercase;
     margin-bottom: var(--space-md);
     opacity: 0.6;
 }
 
 .footer__links {
     list-style: none;
     display: flex;
     flex-direction: column;
     gap: var(--space-xs);
 }
 
 .footer__link {
     color: white;
     opacity: 0.8;
     transition: opacity var(--transition-fast);
 }
 
 .footer__link:hover {
     opacity: 1;
     color: white;
 }
 
 .footer__bottom {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding-top: var(--space-lg);
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     font-size: 0.875rem;
     opacity: 0.6;
 }
 
 .footer__social {
     display: flex;
     gap: var(--space-sm);
 }
 
 .footer__social a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.1);
     color: white;
     transition: all var(--transition-fast);
 }
 
 .footer__social a:hover {
     background: var(--sunset);
     transform: translateY(-3px);
 }
 
 @media (max-width: 768px) {
     .footer__grid {
         grid-template-columns: 1fr 1fr;
         gap: var(--space-lg);
     }
     
     .footer__brand {
         grid-column: 1 / -1;
     }
     
     .footer__bottom {
         flex-direction: column;
         gap: var(--space-sm);
         text-align: center;
     }
 }
 
 /* Animations */
 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }
 
 @keyframes fadeIn {
     from { opacity: 0; }
     to { opacity: 1; }
 }
 
 @keyframes float {
     0%, 100% { transform: translateY(0); }
     50% { transform: translateY(-10px); }
 }
 
 @keyframes pulse {
     0%, 100% { transform: scale(1); }
     50% { transform: scale(1.05); }
 }
 
 .animate-on-scroll {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
 }
 
 .animate-on-scroll.visible {
     opacity: 1;
     transform: translateY(0);
 }
 
 /* Utility classes */
 .text-center { text-align: center; }
 .text-left { text-align: left; }
 .text-right { text-align: right; }
 
 .mt-sm { margin-top: var(--space-sm); }
 .mt-md { margin-top: var(--space-md); }
 .mt-lg { margin-top: var(--space-lg); }
 .mt-xl { margin-top: var(--space-xl); }
 
 .mb-sm { margin-bottom: var(--space-sm); }
 .mb-md { margin-bottom: var(--space-md); }
 .mb-lg { margin-bottom: var(--space-lg); }
 .mb-xl { margin-bottom: var(--space-xl); }
 
 /* Handwritten/organic accents */
 .accent-line {
     position: relative;
 }
 
 .accent-line::after {
     content: '';
     position: absolute;
     bottom: -5px;
     left: 0;
     width: 100%;
     height: 8px;
     background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 5 Q 25 0, 50 5 T 100 5' stroke='%23E8927C' stroke-width='3' fill='none'/%3E%3C/svg%3E") repeat-x;
     background-size: 100px 10px;
 }
 
 /* Trust badges */
 .trust-badges {
     display: flex;
     flex-wrap: wrap;
     gap: var(--space-md);
     align-items: center;
     justify-content: center;
 }
 
 .trust-badge {
     display: flex;
     align-items: center;
     gap: var(--space-xs);
     padding: var(--space-xs) var(--space-sm);
     background: white;
     border-radius: var(--radius-xl);
     font-size: 0.875rem;
     font-weight: 500;
     color: var(--forest);
     box-shadow: var(--shadow-sm);
 }
 
 .trust-badge svg {
     width: 20px;
     height: 20px;
     color: var(--moss);
 }
 
 /* Decorative elements */
 .blob {
     position: absolute;
     border-radius: 50% 40% 60% 50%;
     opacity: 0.1;
     pointer-events: none;
 }
 
 .blob--forest { background: var(--forest); }
 .blob--sunset { background: var(--sunset); }
 .blob--fjord { background: var(--fjord); }