/* Design Tokens */
:root {
    --primary-mint: #34c759;
    --primary-purple: #af52de;
    --primary-blue: #007aff;
    
    --bg-color: #fbfbfd;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(139, 92, 246, 0.25);
    color: inherit;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fcfcfd;
    background-image: linear-gradient(-45deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15), rgba(52, 199, 89, 0.15), rgba(139, 92, 246, 0.15));
    background-size: 400% 400%;
    animation: backgroundFlow 15s ease infinite;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

@keyframes backgroundFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.8;
    animation: float 25s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.15) 0%, rgba(52, 199, 89, 0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(175, 82, 222, 0.15) 0%, rgba(175, 82, 222, 0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0) 70%);
    animation-delay: -10s;
}

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

/* Navigation */
.navbar {
    padding: 1.5rem 5%;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    transition: opacity 0.3s ease;
}

.navbar.navbar-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* Typography & Layout */
main {
    padding-top: 100px;
}

section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 100%;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: #1d1d1f;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #86868b;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.highlight {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    white-space: nowrap;
    padding-bottom: 0.15em;
}

.highlight-gradient-full {
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 25%, #06b6d4 50%, #34c759 75%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
    to {
        background-position: 200% center;
    }
}

.highlight-green {
    color: #34c759;
}

.hero-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-logo-large {
    height: 80px;
    width: auto;
}

.brand-logo-small {
    height: 64px;
    width: auto;
}

/* Decorators */
.scribble-decorator {
    position: absolute;
    top: -20px;
    left: -40px;
    opacity: 0.8;
}

@keyframes starColorCycle {
    0% { fill: #8b5cf6; }
    25% { fill: #3b82f6; }
    50% { fill: #06b6d4; }
    75% { fill: #34c759; }
    100% { fill: #8b5cf6; }
}

.star-decorator {
    position: absolute;
    left: auto;
    right: 10%;
    top: -10%;
    transform: scale(1.1);
}

.star-decorator svg {
    animation: spin 10s linear infinite;
    display: block;
}

.star-decorator path {
    animation: starColorCycle 4s linear infinite;
}

.star-decorator.star-2 {
    left: 5%;
    right: auto;
    top: auto;
    bottom: -15%;
    transform: scale(1.0);
}
.star-decorator.star-2 svg {
    animation: spin 12s linear infinite reverse;
}
.star-decorator.star-2 path {
    animation-delay: -1s;
}

.star-decorator.star-3 {
    left: auto;
    right: -15%;
    top: 60%;
    transform: scale(0.9);
}
.star-decorator.star-3 svg {
    animation: spin 14s linear infinite;
}
.star-decorator.star-3 path {
    animation-delay: -2s;
}

.star-decorator.star-4 {
    left: -15%;
    right: auto;
    top: 40%;
    transform: scale(1.0);
}
.star-decorator.star-4 svg {
    animation: spin 11s linear infinite reverse;
}
.star-decorator.star-4 path {
    animation-delay: -1.5s;
}

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

/* Glassmorphism Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Forms */
.form-container {
    max-width: 450px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.25rem;
}

.form-header p {
    font-size: 1rem;
    color: #86868b;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input, textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, textarea:focus {
    border-color: #8b5cf6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.playful-input input {
    border: 2px dashed rgba(175, 82, 222, 0.4);
    background: rgba(192, 132, 252, 0.05);
}

.playful-input input:focus {
    border-style: solid;
    border-color: #af52de;
    box-shadow: 0 0 0 4px rgba(175, 82, 222, 0.15);
}

.required-star {
    color: var(--primary-purple);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    outline: none;
}

.primary-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4, #34c759);
    background-size: 200% auto;
    color: white;
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background-position: right center;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.primary-btn span {
    position: relative;
    z-index: 2;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.primary-btn:hover::before {
    opacity: 1;
}

.primary-btn:active {
    transform: scale(0.98);
}

.secondary-btn {
    padding: 1rem 2rem;
    border-radius: 99px;
    background: #fff;
    color: var(--text-main);
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.success-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(110, 231, 183, 0.2);
    color: #059669;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* About Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.mint-bg { background: linear-gradient(135deg, #34d399, var(--primary-mint)); }
.purple-bg { background: linear-gradient(135deg, var(--primary-purple), #a855f7); }
.blue-bg { background: linear-gradient(135deg, var(--primary-blue), #3b82f6); }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-card p {
    color: var(--text-muted);
}

/* Partner Section */
.partner-content {
    padding: 5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(245, 245, 247, 0.8));
}

.partner-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.partner-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text {
    transform: translateY(-2rem);
}

.contact-text h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.contact-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.contact-form-container {
    padding: 2.5rem;
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

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

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-main);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-mint);
    transform: translateY(-2px);
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-text {
        text-align: center;
        transform: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 5%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    input, textarea {
        padding: 0.75rem 1rem;
    }

    .primary-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .scribble-decorator, .star-decorator {
        display: none;
    }
    
    footer {
        padding: 2rem 5%;
        margin-top: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .navbar {
        padding: 1rem 5%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .contact-text h2 {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

/* StarBorder Component CSS */
.star-border-container {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: 2px;
  width: 100%;
}

.border-gradient-bottom {
  position: absolute;
  width: 300%;
  height: 50%;
  opacity: 0.7;
  bottom: -12px;
  right: -250%;
  border-radius: 50%;
  animation: star-movement-bottom 6s linear infinite alternate;
  z-index: 0;
}

.border-gradient-top {
  position: absolute;
  opacity: 0.7;
  width: 300%;
  height: 50%;
  top: -12px;
  left: -250%;
  border-radius: 50%;
  animation: star-movement-top 6s linear infinite alternate;
  z-index: 0;
}

.star-border-container .primary-btn {
  position: relative;
  z-index: 1;
  margin: 0;
}

@keyframes star-movement-bottom {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(-100%, 0%);
    opacity: 0;
  }
}

@keyframes star-movement-top {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(100%, 0%);
    opacity: 0;
  }
}
