205 lines
4.5 KiB
CSS
205 lines
4.5 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
--color-primary: #0E2A47;
|
|
--color-accent-green: #2FA66A;
|
|
--color-bg-color: #F8F9FA;
|
|
--color-secondary-bg: #E6E9ED;
|
|
--color-text-primary: #1F2933;
|
|
--color-text-secondary: #6B7280;
|
|
|
|
--font-family-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #0E2A47;
|
|
--bg-color: #F8F9FA;
|
|
--secondary-bg: #E6E9ED;
|
|
--text-secondary: #6B7280;
|
|
--text-primary: #1F2933;
|
|
--accent-green: #2FA66A;
|
|
--font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--header-height: 80px;
|
|
--bottom-nav-height: 0px;
|
|
--safe-area-bottom: env(safe-area-inset-bottom);
|
|
--safe-area-top: env(safe-area-inset-top);
|
|
--safe-area-left: env(safe-area-inset-left);
|
|
--safe-area-right: env(safe-area-inset-right);
|
|
--spacing-xs: 0.5rem;
|
|
--spacing-sm: 0.75rem;
|
|
--spacing-md: 1rem;
|
|
--spacing-lg: 1.5rem;
|
|
--spacing-xl: 2rem;
|
|
--spacing-2xl: 3rem;
|
|
--spacing-3xl: 4rem;
|
|
}
|
|
|
|
@layer base {
|
|
*, ::after, ::before {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
-webkit-text-size-adjust: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
background-color: var(--bg-color);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizeLegibility;
|
|
margin: 0;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: var(--primary-color);
|
|
font-weight: 700;
|
|
line-height: 1.15;
|
|
margin-bottom: var(--spacing-lg);
|
|
letter-spacing: -0.02em;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
h1 {
|
|
font-size: clamp(2rem, 8vw, 3.5rem);
|
|
hyphens: auto;
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: clamp(1.5rem, 6vw, 2.5rem);
|
|
position: relative;
|
|
display: block;
|
|
margin-bottom: var(--spacing-xl);
|
|
font-weight: 700;
|
|
}
|
|
|
|
h2:not(.no-underline)::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -12px;
|
|
left: 0;
|
|
width: 48px;
|
|
height: 4px;
|
|
background: var(--accent-green);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
section {
|
|
padding: clamp(3rem, 8vw, 6rem) 0;
|
|
}
|
|
|
|
.cta-button {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
padding: 1rem 2rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-weight: 700;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
transition: all var(--transition-fast);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
font-size: 0.8rem;
|
|
border-radius: 8px;
|
|
min-height: 48px;
|
|
}
|
|
|
|
.nav-link {
|
|
position: relative;
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-link:hover, .nav-link.active {
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
.mobile-nav {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
:root {
|
|
--header-height: 64px;
|
|
--bottom-nav-height: 72px;
|
|
}
|
|
|
|
.mobile-nav {
|
|
display: flex;
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
|
|
background: rgba(255, 255, 255, 0.96);
|
|
backdrop-filter: blur(24px);
|
|
border-top: 0.5px solid rgba(0, 0, 0, 0.08);
|
|
justify-content: space-around;
|
|
align-items: flex-start;
|
|
z-index: 1000;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.mobile-nav-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
color: #9ca3af;
|
|
font-size: 0.625rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
flex: 1;
|
|
padding: 8px 4px;
|
|
}
|
|
|
|
.mobile-nav-link.active {
|
|
color: var(--primary-color);
|
|
}
|
|
}
|
|
|
|
.scroll-top-btn {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
width: 56px;
|
|
height: 56px;
|
|
background: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 900;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all var(--transition-smooth);
|
|
}
|
|
|
|
.scroll-top-btn.visible {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
}
|