/* iOS Font (Bold Weights) & Dark Theme for HTFX Trading */
:root {
    --primary-color: #007AFF; /* iOS Blue */
    --secondary-color: #34C759; /* iOS Green */
    --accent-color: #FF9500; /* iOS Orange for accents */
    --background-color: #000000; /* Pure Black Background */
    --text-color: #FFFFFF; /* White Text */
    --header-bg: #1c1c1e; /* Slightly lighter dark for header */
    --card-bg: #2c2c2e; /* Darker card background */
    --card-shadow: 0 6px 16px rgba(0,0,0,0.4); /* Deeper Shadow */
    --border-radius: 12px; /* Standard iOS radius */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --element-shadow: 0 4px 10px rgba(0, 122, 255, 0.3); /* Blue element shadow */
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 700; /* Default to Bold for the entire body */
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Applying bold weight explicitly to elements that might default to lighter */
h1, h2, h3, .btn, .feature-item h3 {
    font-weight: 700; /* Ensures headings and key text are bold */
}

/* If you need even heavier weights like Black/Heavy */
.heavy-text {
    font-weight: 800; /* SF Pro Display Black/Heavy weight */
}

.welcome-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-bg);
    padding: 18px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 122, 255, 0.1); /* Subtle blue line */
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    animation: glow 2s infinite alternate; /* Glow effect for logo */
}

.logo i {
    font-size: 32px;
    margin-right: 12px;
}

.logo h1 {
    font-size: 26px;
    letter-spacing: 0.5px;
    font-weight: 800; /* Heavier weight for logo title */
}

nav a {
    color: #cccccc; /* Lighter gray for nav links */
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700; /* Bold for navigation links */
    font-size: 17px;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80vh;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    text-align: left;
    animation: fadeInFromLeft 1.5s ease-out forwards;
    opacity: 0;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800; /* Heavier weight for main heading */
}

.hero-content h2 .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 122, 255, 0.5); /* Blue glow */
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #aaaaaa;
    font-weight: 400; /* Regular weight for paragraph */
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3); /* Blue element shadow */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-color); /* Black text on blue */
    animation: pulse 2.5s infinite ease-in-out; /* Pulse animation */
}

.btn-primary:hover {
    background-color: #005ecb; /* Darker blue */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-color); /* Black text on blue */
    transform: translateY(-3px);
    box-shadow: var(--element-shadow);
}

.btn i {
    margin-left: 10px;
    font-size: 1.1em;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 2s ease-out forwards;
    opacity: 0;
}

/* Animated Graph Container */
.animated-graph-container {
    width: 400px;
    height: 300px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.graph-elements {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate3dInfinite 15s linear infinite;
}

.line-chart-path {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.3) 0%, rgba(0, 122, 255, 0) 70%); /* Blue gradient */
    animation: glowPath 3s ease-in-out infinite alternate;
}

.candlestick-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    top: 0;
    left: 0;
}

.candlestick {
    width: 12px;
    height: 50px;
    background-color: var(--primary-color); /* Blue */
    position: relative;
    border-radius: 2px;
    animation: animateCandlestick 3s ease-in-out infinite alternate;
}

.candlestick.green {
    background-color: var(--secondary-color); /* Green */
    animation-delay: 0.2s;
}

.candlestick.red {
    background-color: #FF3B30; /* iOS Red */
    animation-delay: 0.4s;
}

.indicator-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    animation: pulseDots 2s infinite ease-in-out;
}

.indicator-dots::before, .indicator-dots::after {
    content: '';
    width: 15px;
    height: 15px;
    background-color: rgba(0, 122, 255, 0.6); /* Blue dots */
    border-radius: 50%;
    opacity: 0.7;
}
.indicator-dots::before { animation: dotPulse 2s infinite ease-in-out 0.2s; }
.indicator-dots::after { animation: dotPulse 2s infinite ease-in-out 0.4s; }


/* Features Section */
.features-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--header-bg);
    border-radius: var(--border-radius);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.features-section h2 {
    font-size: 42px;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(0, 122, 255, 0.3); /* Blue text shadow */
    font-weight: 800; /* Heavier weight for section heading */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.feature-item::before { /* Subtle glow effect on hover */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.2) 0%, rgba(0, 122, 255, 0) 70%);
    transform: rotate(-45deg);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    text-shadow: 0 0 15px rgba(0, 122, 255, 0.5);
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700; /* Bold for feature titles */
}

.feature-item p {
    font-size: 17px;
    color: #cccccc;
    font-weight: 400; /* Regular for paragraph text */
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    border-top: 1px solid #333333;
}

footer p {
    font-size: 15px;
    color: #888888;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Social icons div removed from footer */

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 5px rgba(0, 122, 255, 0.5); }
    to { text-shadow: 0 0 15px rgba(0, 122, 255, 0.8); }
}

@keyframes fadeInFromLeft {
    from { transform: translateX(-80px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes rotate3dInfinite {
    from { transform: perspective(1000px) rotateX(-10deg) rotateY(0deg) rotateZ(0deg); }
    to { transform: perspective(1000px) rotateX(-10deg) rotateY(360deg) rotateZ(0deg); }
}

@keyframes glowPath {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.3; }
}

@keyframes animateCandlestick {
    0% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1.2); opacity: 1; }
    100% { transform: scaleY(0.8); opacity: 0.8; }
}

@keyframes pulseDots {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes dotPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-content h2 { font-size: 48px; }
    .hero-content p { font-size: 18px; }
    .btn { padding: 12px 25px; font-size: 16px; }
    .animated-graph-container { width: 350px; height: 250px; }
}

@media (max-width: 992px) {
    header { flex-direction: column; padding: 15px; }
    nav { margin-top: 15px; }
    nav a { margin: 0 15px; font-size: 16px; }
    .hero-section { flex-direction: column; min-height: auto; padding: 40px 20px; }
    .hero-content { max-width: 100%; margin-bottom: 50px; }
    .hero-content h2 { font-size: 44px; }
    .animated-graph-container { width: 300px; height: 200px; margin-top: 30px; }
    .features-section h2 { font-size: 36px; }
    .feature-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .logo h1 { font-size: 22px; }
    .logo i { font-size: 28px; }
    nav a { margin-left: 20px; }
    .hero-content h2 { font-size: 38px; }
    .hero-content p { font-size: 17px; }
    .btn { padding: 10px 20px; font-size: 15px; }
    .cta-buttons { gap: 15px; }
    .animated-graph-container { width: 250px; height: 180px; }
    .features-section h2 { font-size: 30px; }
    .feature-item { padding: 30px; }
    .feature-item h3 { font-size: 20px; }
    .feature-item p { font-size: 15px; }
    footer { padding: 40px 20px; }
}

@media (max-width: 600px) {
    .logo { flex-direction: column; }
    .logo i { margin-right: 0; margin-bottom: 8px; }
    nav { flex-direction: column; gap: 10px; margin-top: 15px; }
    nav a { margin: 0; }
    .hero-content h2 { font-size: 32px; }
    .hero-content p { font-size: 15px; }
    .btn { padding: 8px 15px; font-size: 14px; }
    .animated-graph-container { width: 200px; height: 150px; }
    .features-section { padding: 50px 20px; }
    .features-section h2 { font-size: 28px; margin-bottom: 30px; }
    .feature-item { padding: 25px; }
    .feature-item i { font-size: 36px; }
    .feature-item h3 { font-size: 18px; }
    .feature-item p { font-size: 14px; }
    footer { padding: 30px 20px; }
}
